forked from zyedidia/micro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdown.micro
44 lines (30 loc) · 893 Bytes
/
markdown.micro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
# Tables (Github extension)
color type ".*[ :]\|[ :].*"
# quotes
color statement "^>.*"
# Emphasis
color type "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
# Strong emphasis
color type "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
# strike-through
color type "(^|[[:space:]])~~[^ ][^~]*~~"
# horizontal rules
color special "^(---+|===+|___+|\*\*\*+)\s*$"
# headlines
color special "^#{1,6}.*"
# lists
color identifier "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
# misc
color preproc "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
# links
color constant "\[[^]]+\]"
color constant "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
# images
color underlined "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
# urls
color underlined "https?://[^ )>]+"
# code
color special "`.*?`|^ {4}[^-+*].*"
# code blocks
color special "^```$"