Search in sources :

Example 1 with ImpliedHyperlinkReplacementToken

use of org.eclipse.mylyn.wikitext.confluence.internal.token.ImpliedHyperlinkReplacementToken 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());
}
Also used : NumericEntityReferenceReplacementToken(org.eclipse.mylyn.wikitext.confluence.internal.token.NumericEntityReferenceReplacementToken) NumericEntityReferenceReplacementToken(org.eclipse.mylyn.wikitext.confluence.internal.token.NumericEntityReferenceReplacementToken) EntityReferenceReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.EntityReferenceReplacementToken) PatternEntityReferenceReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.PatternEntityReferenceReplacementToken) PatternEntityReferenceReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.PatternEntityReferenceReplacementToken) PatternLineBreakReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.PatternLineBreakReplacementToken) HorizontalRuleToken(org.eclipse.mylyn.wikitext.confluence.internal.token.HorizontalRuleToken) ImpliedHyperlinkReplacementToken(org.eclipse.mylyn.wikitext.confluence.internal.token.ImpliedHyperlinkReplacementToken) EscapedCharacterReplacementToken(org.eclipse.mylyn.wikitext.confluence.internal.token.EscapedCharacterReplacementToken) AnchorReplacementToken(org.eclipse.mylyn.wikitext.confluence.internal.token.AnchorReplacementToken)

Aggregations

AnchorReplacementToken (org.eclipse.mylyn.wikitext.confluence.internal.token.AnchorReplacementToken)1 EscapedCharacterReplacementToken (org.eclipse.mylyn.wikitext.confluence.internal.token.EscapedCharacterReplacementToken)1 HorizontalRuleToken (org.eclipse.mylyn.wikitext.confluence.internal.token.HorizontalRuleToken)1 ImpliedHyperlinkReplacementToken (org.eclipse.mylyn.wikitext.confluence.internal.token.ImpliedHyperlinkReplacementToken)1 NumericEntityReferenceReplacementToken (org.eclipse.mylyn.wikitext.confluence.internal.token.NumericEntityReferenceReplacementToken)1 EntityReferenceReplacementToken (org.eclipse.mylyn.wikitext.parser.markup.token.EntityReferenceReplacementToken)1 PatternEntityReferenceReplacementToken (org.eclipse.mylyn.wikitext.parser.markup.token.PatternEntityReferenceReplacementToken)1 PatternLineBreakReplacementToken (org.eclipse.mylyn.wikitext.parser.markup.token.PatternLineBreakReplacementToken)1