Search in sources :

Example 1 with LinkReplacementToken

use of org.eclipse.mylyn.wikitext.twiki.internal.token.LinkReplacementToken in project mylyn.docs by eclipse.

the class TWikiLanguage method addStandardTokens.

@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
    // IMPORTANT NOTE: Most items below have order dependencies.  DO NOT REORDER ITEMS BELOW!!
    // $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"));
    tokenSyntax.add(new LinkReplacementToken());
    tokenSyntax.add(new ImpliedHyperlinkReplacementToken());
    tokenSyntax.add(new ImpliedEmailLinkReplacementToken());
    tokenSyntax.add(new WikiWordReplacementToken());
    tokenSyntax.add(new IconReplacementToken());
    literalTokenSyntax.add(new ImpliedHyperlinkReplacementToken());
}
Also used : WikiWordReplacementToken(org.eclipse.mylyn.wikitext.twiki.internal.token.WikiWordReplacementToken) EntityReferenceReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.EntityReferenceReplacementToken) ImpliedEmailLinkReplacementToken(org.eclipse.mylyn.wikitext.twiki.internal.token.ImpliedEmailLinkReplacementToken) IconReplacementToken(org.eclipse.mylyn.wikitext.twiki.internal.token.IconReplacementToken) ImpliedEmailLinkReplacementToken(org.eclipse.mylyn.wikitext.twiki.internal.token.ImpliedEmailLinkReplacementToken) LinkReplacementToken(org.eclipse.mylyn.wikitext.twiki.internal.token.LinkReplacementToken) ImpliedHyperlinkReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken)

Aggregations

EntityReferenceReplacementToken (org.eclipse.mylyn.wikitext.parser.markup.token.EntityReferenceReplacementToken)1 ImpliedHyperlinkReplacementToken (org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken)1 IconReplacementToken (org.eclipse.mylyn.wikitext.twiki.internal.token.IconReplacementToken)1 ImpliedEmailLinkReplacementToken (org.eclipse.mylyn.wikitext.twiki.internal.token.ImpliedEmailLinkReplacementToken)1 LinkReplacementToken (org.eclipse.mylyn.wikitext.twiki.internal.token.LinkReplacementToken)1 WikiWordReplacementToken (org.eclipse.mylyn.wikitext.twiki.internal.token.WikiWordReplacementToken)1