Files
zyedidia.micro/runtime/syntax/markdown.micro
CaptainMcClellan d949b58fc0 Legacy syntax overhaul 2 (#577)
* Added title setting (Requires tcell pull!) and optimized tab display.

* Added Clojure highlighting.

* Changed tcell call to screen.

* Fixed bad reference for getting Buffer name.

* Yet another massive syntax overhaul

* Tweaking and testing web syntax

* More webdev goodies

* Added html5 highlighting and strict html4 highlighting.

* Documentation update
2017-03-03 11:47:03 -05:00

45 lines
940 B
Plaintext

syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
# Tables (Github extension)
color preproc ".*[ :]\|[ :].*"
# quotes
color constant.string "^>.*"
# Emphasis
color type "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
# Strong emphasis
color type.keyword "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
# strike-through
color type "(^|[[:space:]])~~[^ ][^~]*~~"
# horizontal rules
color symbol "^(---+|\+---+|===+|\+===+|___+|\*\*\*+|\+\*\*\*+)\s*$"
# headlines
color statement "^#{1,6}.*"
# lists
color identifier "^[[:space:]]*[\*+\-] |^[[:space:]]*[0-9]+\. "
# misc
color preproc "\b([CcRr]|[Tt][Mm])\b" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
# links
color constant "\[[^]]+\]"
color constant "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
# images
color underlined "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
# urls
color underlined.url "https?://[^ )>]+"
# code
color special "`.*?`|^ {4}[^\-+*].*"
# code blocks
color symbol "^```$"