Search in sources :

Example 1 with MacroReplacementToken

use of org.eclipse.mylyn.wikitext.tracwiki.internal.token.MacroReplacementToken in project mylyn.docs by eclipse.

the class TracWikiLanguage method addStandardTokens.

@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
    // IMPORTANT NOTE: Most items below have order dependencies.  DO NOT REORDER ITEMS BELOW!!
    tokenSyntax.add(new BangEscapeToken());
    tokenSyntax.add(new LineBreakToken());
    // always starts at the start of a line or after a non-word character excluding '!' and '-' //$NON-NLS-1$
    tokenSyntax.beginGroup("(?:(?<=[\\s\\.\\\"'?!;:\\)\\(\\{\\}\\[\\]-])|^)(?:", 0);
    tokenSyntax.add(new MacroReplacementToken());
    tokenSyntax.add(new RevisionLogReplacementToken());
    tokenSyntax.add(new ChangesetLinkReplacementToken());
    tokenSyntax.add(new HyperlinkReplacementToken());
    tokenSyntax.add(new ImpliedHyperlinkReplacementToken());
    tokenSyntax.add(new TicketAttachmentLinkReplacementToken());
    tokenSyntax.add(new TicketLinkReplacementToken());
    tokenSyntax.add(new ReportLinkReplacementToken());
    tokenSyntax.add(new MilestoneLinkReplacementToken());
    tokenSyntax.add(new SourceLinkReplacementToken());
    tokenSyntax.add(new WikiLinkReplacementToken());
    if (configuration == null || configuration.isWikiWordLinking() == null || configuration.isWikiWordLinking()) {
        tokenSyntax.add(new WikiWordReplacementToken());
    }
    // $NON-NLS-1$
    tokenSyntax.endGroup(")(?=\\W|$)", 0);
}
Also used : ReportLinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.ReportLinkReplacementToken) ChangesetLinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.ChangesetLinkReplacementToken) LineBreakToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.LineBreakToken) MacroReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.MacroReplacementToken) TicketLinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.TicketLinkReplacementToken) TicketAttachmentLinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.TicketAttachmentLinkReplacementToken) WikiLinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.WikiLinkReplacementToken) HyperlinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.HyperlinkReplacementToken) ImpliedHyperlinkReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken) WikiWordReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.WikiWordReplacementToken) BangEscapeToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.BangEscapeToken) MilestoneLinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.MilestoneLinkReplacementToken) RevisionLogReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.RevisionLogReplacementToken) ImpliedHyperlinkReplacementToken(org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken) SourceLinkReplacementToken(org.eclipse.mylyn.wikitext.tracwiki.internal.token.SourceLinkReplacementToken)

Aggregations

ImpliedHyperlinkReplacementToken (org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken)1 BangEscapeToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.BangEscapeToken)1 ChangesetLinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.ChangesetLinkReplacementToken)1 HyperlinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.HyperlinkReplacementToken)1 LineBreakToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.LineBreakToken)1 MacroReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.MacroReplacementToken)1 MilestoneLinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.MilestoneLinkReplacementToken)1 ReportLinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.ReportLinkReplacementToken)1 RevisionLogReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.RevisionLogReplacementToken)1 SourceLinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.SourceLinkReplacementToken)1 TicketAttachmentLinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.TicketAttachmentLinkReplacementToken)1 TicketLinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.TicketLinkReplacementToken)1 WikiLinkReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.WikiLinkReplacementToken)1 WikiWordReplacementToken (org.eclipse.mylyn.wikitext.tracwiki.internal.token.WikiWordReplacementToken)1