use of org.eclipse.mylyn.wikitext.tracwiki.internal.token.HyperlinkReplacementToken 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);
}
Aggregations