use of org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken in project mylyn.docs by eclipse.
the class MediaWikiLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
tokenSyntax.add(new LineBreakToken());
// $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 ImageReplacementToken());
tokenSyntax.add(new HyperlinkInternalReplacementToken());
tokenSyntax.add(new HyperlinkExternalReplacementToken());
tokenSyntax.add(new ImpliedHyperlinkReplacementToken());
// horizontal rule //$NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new PatternLiteralReplacementToken("(?:(?<=^|\\w\\s)(----)(?=$|\\s\\w))", "<hr/>"));
tokenSyntax.add(new org.eclipse.mylyn.wikitext.mediawiki.internal.token.EntityReferenceReplacementToken());
}
use of org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken 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());
}
use of org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken in project mylyn.docs by eclipse.
the class CreoleLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
// IMPORTANT NOTE: Most items below have order dependencies. DO NOT REORDER ITEMS BELOW!!
// line break //$NON-NLS-1$
tokenSyntax.add(new PatternLineBreakReplacementToken("(\\\\\\\\)"));
tokenSyntax.add(new LinkReplacementToken());
tokenSyntax.add(new ImpliedHyperlinkReplacementToken());
}
use of org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken 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);
}
use of org.eclipse.mylyn.wikitext.parser.markup.token.ImpliedHyperlinkReplacementToken in project mylyn.docs by eclipse.
the class ImpliedHyperlinkReplacementTokenTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
token = new ImpliedHyperlinkReplacementToken();
pattern = Pattern.compile(token.getPattern(0));
}
Aggregations