mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-20 05:50:20 +09:00
* 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
45 lines
940 B
Plaintext
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 "^```$"
|
|
|