mc/misc/syntax/markdown.syntax
Sergey Naumov 729f6eef9c Ticket #3893: fix markdown.syntax that doesn't work well for complex files
* Asterisk and underscore contexts don't play well with lists or
  words containing underscores. And given that markdown files
  could contain not only ASCII text, it is better to be conservative
  in detecting contexts.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-05-09 18:12:42 +03:00

31 lines
557 B
YAML

# Markdown syntax highlighting
context default lightgray
spellcheck
# links
keyword whole [*](*) yellow
keyword \*\* white
keyword \* yellow
keyword \\_ lightgray
keyword wholeleft __ white
keyword wholeright __ white
keyword wholeleft _ yellow
keyword wholeright _ yellow
context linestart #### \n red
spellcheck
context linestart # \n brightred
spellcheck
context linestart > \n green
spellcheck
context linestart \s\s\s\s \n cyan
context ``` ``` cyan
context `` `` cyan
context ` ` cyan