use of org.eclipse.mylyn.wikitext.markdown.internal.token.ReferenceStyleLinkReplacementToken in project mylyn.docs by eclipse.
the class MarkdownLanguage method addStandardPhraseModifiers.
@Override
protected void addStandardPhraseModifiers(PatternBasedSyntax phraseModifierSyntax) {
// inline HTML
phraseModifierSyntax.add(new HtmlEndTagPhraseModifier());
phraseModifierSyntax.add(new HtmlStartTagPhraseModifier());
// images
phraseModifierSyntax.add(new InlineImageReplacementToken());
phraseModifierSyntax.add(new ReferenceStyleImageReplacementToken());
// links
phraseModifierSyntax.add(new InlineLinkReplacementToken());
phraseModifierSyntax.add(new ReferenceStyleLinkReplacementToken());
phraseModifierSyntax.add(new AutomaticLinkReplacementToken());
// backslash escaped span elements
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("**"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("__"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("*"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("_"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("\\"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("`"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("{"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("}"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("["));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("]"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("("));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier(")"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("#"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("+"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("-"));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("."));
// $NON-NLS-1$
phraseModifierSyntax.add(new BackslashEscapePhraseModifier("!"));
// emphasis span elements
// $NON-NLS-1$
phraseModifierSyntax.add(new SimplePhraseModifier("``", SpanType.CODE));
// $NON-NLS-1$
phraseModifierSyntax.add(new SimplePhraseModifier("`", SpanType.CODE));
// $NON-NLS-1$
phraseModifierSyntax.add(new SimplePhraseModifier("**", SpanType.STRONG));
// $NON-NLS-1$
phraseModifierSyntax.add(new SimplePhraseModifier("__", SpanType.STRONG));
// $NON-NLS-1$
phraseModifierSyntax.add(new SimplePhraseModifier("*", SpanType.EMPHASIS));
// $NON-NLS-1$
phraseModifierSyntax.add(new SimplePhraseModifier("_", SpanType.EMPHASIS));
}
Aggregations