use of org.eclipse.mylyn.wikitext.parser.markup.token.PatternLineBreakReplacementToken in project mylyn.docs by eclipse.
the class AsciiDocLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
// HTML entities are preserved
tokenSyntax.add(new PreserverHtmlEntityToken());
// line ending with a + will cause a line Break
// $NON-NLS-1$
tokenSyntax.add(new PatternLineBreakReplacementToken("(\\s\\+)\\s*$"));
}
use of org.eclipse.mylyn.wikitext.parser.markup.token.PatternLineBreakReplacementToken in project mylyn.docs by eclipse.
the class CreoleLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
// IMPORTANT NOTE: Most items below have order dependencies. DO NOT REORDER ITEMS BELOW!!
// line break //$NON-NLS-1$
tokenSyntax.add(new PatternLineBreakReplacementToken("(\\\\\\\\)"));
tokenSyntax.add(new LinkReplacementToken());
tokenSyntax.add(new ImpliedHyperlinkReplacementToken());
}
use of org.eclipse.mylyn.wikitext.parser.markup.token.PatternLineBreakReplacementToken in project mylyn.docs by eclipse.
the class MarkdownLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
// HTML entities are preserved
tokenSyntax.add(new PreserverHtmlEntityToken());
// inline links have to be handled as tokens, as they can be embedded in phrases
tokenSyntax.add(new InlineLinkReplacementToken());
tokenSyntax.add(new InlineImageReplacementToken());
// two or more spaces at end of line force a line break
// $NON-NLS-1$
tokenSyntax.add(new PatternLineBreakReplacementToken("( {2,})$"));
}
use of org.eclipse.mylyn.wikitext.parser.markup.token.PatternLineBreakReplacementToken in project mylyn.docs by eclipse.
the class ConfluenceLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
// line break //$NON-NLS-1$
tokenSyntax.add(new PatternLineBreakReplacementToken("(\\\\\\\\ ?)"));
// ORDER DEPENDENCY must come after line break
tokenSyntax.add(new EscapedCharacterReplacementToken());
// $NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new EntityReferenceReplacementToken("(tm)", "#8482"));
// $NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new EntityReferenceReplacementToken("(TM)", "#8482"));
// $NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new EntityReferenceReplacementToken("(c)", "#169"));
// $NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new EntityReferenceReplacementToken("(C)", "#169"));
// $NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new EntityReferenceReplacementToken("(r)", "#174"));
// $NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new EntityReferenceReplacementToken("(R)", "#174"));
// emdash //$NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new PatternEntityReferenceReplacementToken("(?:(?<=(?:\\w\\s)|^)(---)(?=\\s\\w))", "#8212"));
// endash //$NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new PatternEntityReferenceReplacementToken("(?:(?<=(?:\\w\\s)|^)(--)(?=\\s\\w))", "#8211"));
tokenSyntax.add(new HorizontalRuleToken());
tokenSyntax.add(new ImpliedHyperlinkReplacementToken());
tokenSyntax.add(new AnchorReplacementToken());
tokenSyntax.add(new NumericEntityReferenceReplacementToken());
}
Aggregations