Ticket #3864: initial support of Markdown syntax highlighting.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Grzegorz Szymaszek 2017-10-29 20:32:46 +03:00 committed by Andrew Borodin
parent cde8e194aa
commit 26ecb44e1d
3 changed files with 39 additions and 0 deletions

View File

@ -51,6 +51,7 @@ SYNTAXFILES = \
m4.syntax \
mail.syntax \
makefile.syntax \
markdown.syntax \
ml.syntax \
named.syntax \
nemerle.syntax \

View File

@ -286,5 +286,8 @@ include osl.syntax
file .\*\\.([rR]|Rd|Rscript)$ R\sProgram
include r.syntax
file ..\*\\.(?i:md)$ Markdown
include markdown.syntax
file .\* unknown
include unknown.syntax

View File

@ -0,0 +1,35 @@
# Markdown syntax highlighting
context default lightgray
spellcheck
# links
keyword whole [*](*) 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
context \*\* \*\* brightgreen
spellcheck
context \* \* magenta
spellcheck
context \_\_ \_\_ brightgreen
spellcheck
context \_ \_ magenta
spellcheck