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