use of org.eclipse.mylyn.wikitext.confluence.internal.token.ImpliedHyperlinkReplacementToken in project mylyn.docs by eclipse.
the class ConfluenceLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
// line break //$NON-NLS-1$
tokenSyntax.add(new PatternLineBreakReplacementToken("(\\\\\\\\ ?)"));
// ORDER DEPENDENCY must come after line break
tokenSyntax.add(new EscapedCharacterReplacementToken());
// $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"));
// emdash //$NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new PatternEntityReferenceReplacementToken("(?:(?<=(?:\\w\\s)|^)(---)(?=\\s\\w))", "#8212"));
// endash //$NON-NLS-1$ //$NON-NLS-2$
tokenSyntax.add(new PatternEntityReferenceReplacementToken("(?:(?<=(?:\\w\\s)|^)(--)(?=\\s\\w))", "#8211"));
tokenSyntax.add(new HorizontalRuleToken());
tokenSyntax.add(new ImpliedHyperlinkReplacementToken());
tokenSyntax.add(new AnchorReplacementToken());
tokenSyntax.add(new NumericEntityReferenceReplacementToken());
}
Aggregations