]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/markdown.micro
Add quick start guide to help.md
[micro.git] / runtime / syntax / markdown.micro
index e7be3d372dcb82372f5227f05a03c3880a7e45e4..71c35ad1095e148bd13f7fa8111cec8f8580135f 100644 (file)
@@ -1,48 +1,44 @@
-syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
+syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
 
 # Tables (Github extension)
-color cyan ".*[ :]\|[ :].*"
+color type ".*[ :]\|[ :].*"
 
 # quotes
-color brightblack  "^>.*"
+color statement  "^>.*"
 
 # Emphasis
-color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
+color type "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
 
 # Strong emphasis
-color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
+color type "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
 
 # strike-through
-color red "(^|[[:space:]])~~[^ ][^~]*~~"
+color type "(^|[[:space:]])~~[^ ][^~]*~~"
 
 # horizontal rules
-color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$"
+color special "^(---+|===+|___+|\*\*\*+)\s*$"
 
 # headlines
-color brightmagenta  "^#{1,6}.*"
+color special  "^#{1,6}.*"
 
 # lists
-color blue   "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
-
-# leading whitespace
-color black    "^[[:space:]]+"
+color identifier   "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
 
 # misc
-color magenta   "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
+color preproc   "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
 
 # links
-color brightblue "\[[^]]+\]"
-color brightblue "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
+color constant "\[[^]]+\]"
+color constant "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
 
 # images
-color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
+color underlined "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
 
 # urls
-color brightyellow "https?://[^ )>]+"
+color underlined "https?://[^ )>]+"
 
 # code
-color yellow   "`.*?`|^ {4}[^-+*].*"
+color special   "`.*?`|^ {4}[^-+*].*"
 # code blocks
-# color yellow (s) "^```[^$].*?^```$"
-color yellow "^```$"
+color special "^```$"