@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()); tokenSyntax.beginGroup("(?:(?<=[\\s\\.\\\"'?!;:\\)\\(\\{\\}\\[\\]-])|^)(?:", 0); // always starts at the start of a line or after a non-word character excluding '!' and '-' //$NON-NLS-1$ 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()); } tokenSyntax.endGroup(")(?=\\W|$)", 0); //$NON-NLS-1$ }
@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()); tokenSyntax.beginGroup("(?:(?<=[\\s\\.\\\"'?!;:\\)\\(\\{\\}\\[\\]-])|^)(?:", 0); // always starts at the start of a line or after a non-word character excluding '!' and '-' //$NON-NLS-1$ 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()); } tokenSyntax.endGroup(")(?=\\W|$)", 0); //$NON-NLS-1$ }