2016-08-25 00:15:36 +00:00
|
|
|
syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Tables (Github extension)
|
2017-03-01 14:30:35 +00:00
|
|
|
color preproc ".*[ :]\|[ :].*"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# quotes
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant.string "^>.*"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Emphasis
|
2016-03-23 17:23:50 +00:00
|
|
|
color type "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Strong emphasis
|
2017-03-01 14:30:35 +00:00
|
|
|
color type.keyword "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# strike-through
|
2016-03-23 17:23:50 +00:00
|
|
|
color type "(^|[[:space:]])~~[^ ][^~]*~~"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# horizontal rules
|
2017-03-01 14:30:35 +00:00
|
|
|
color symbol "^(---+|\+---+|===+|\+===+|___+|\*\*\*+|\+\*\*\*+)\s*$"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# headlines
|
2017-03-01 14:30:35 +00:00
|
|
|
color statement "^#{1,6}.*"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# lists
|
2017-03-03 16:47:03 +00:00
|
|
|
color identifier "^[[:space:]]*[\*+\-] |^[[:space:]]*[0-9]+\. "
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# misc
|
2017-03-01 14:30:35 +00:00
|
|
|
color preproc "\b([CcRr]|[Tt][Mm])\b" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# links
|
2016-03-23 17:23:50 +00:00
|
|
|
color constant "\[[^]]+\]"
|
|
|
|
|
color constant "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# images
|
2016-03-23 17:23:50 +00:00
|
|
|
color underlined "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# urls
|
2017-03-01 14:30:35 +00:00
|
|
|
color underlined.url "https?://[^ )>]+"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# code
|
2017-03-03 16:47:03 +00:00
|
|
|
color special "`.*?`|^ {4}[^\-+*].*"
|
2016-03-21 16:16:02 +00:00
|
|
|
# code blocks
|
2017-03-01 14:30:35 +00:00
|
|
|
color symbol "^```$"
|
2016-03-21 18:48:17 +00:00
|
|
|
|