]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/markdown.yaml
c4549bc6abc2c07492048559e6f2807ff726cf12
[micro.git] / runtime / syntax / markdown.yaml
1 filetype: markdown
2
3 detect: 
4     filename: "\\.(md|mkd|mkdn|markdown)$"
5
6 rules:
7     - preproc: ".*[ :]\\|[ :].*"
8     - constant.string: "^>.*"
9     - type: "(^|[[:space:]])(_[^ ][^_]*_|\\*[^ ][^*]*\\*)"
10     - type.keyword: "(^|[[:space:]])(__[^ ][^_]*__|\\*\\*[^ ][^*]*\\*\\*)"
11     - type: "(^|[[:space:]])~~[^ ][^~]*~~"
12     - symbol: "^(---+|\\+---+|===+|\\+===+|___+|\\*\\*\\*+|\\+\\*\\*\\*+)\\s*$"
13     - statement: "^#{1,6}.*"
14     - identifier: "^[[:space:]]*[\\*+\\-] |^[[:space:]]*[0-9]+\\. "
15     - preproc: "\\b([CcRr]|[Tt][Mm])\\b|\\.{3}|(^|[[:space:]])\\-\\-($|[[:space:]])"
16     - constant: "\\[[^]]+\\]"
17     - constant: "\\[([^][]|\\[[^]]*\\])*\\]\\([^)]+\\)"
18     - underlined: "!\\[[^][]*\\](\\([^)]+\\)|\\[[^]]+\\])"
19     - underlined.url: "https?://[^ )>]+"
20     - special: "`.*?`|^ {4}[^\\-+*].*"
21     - symbol: "^```$"