mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 23:22:41 +09:00
22 lines
829 B
YAML
22 lines
829 B
YAML
filetype: markdown
|
|
|
|
detect:
|
|
filename: "\\.(md|mkd|mkdn|markdown)$"
|
|
|
|
rules:
|
|
- preproc: ".*[ :]\\|[ :].*"
|
|
- constant.string: "^>.*"
|
|
- type: "(^|[[:space:]])(_[^ ][^_]*_|\\*[^ ][^*]*\\*)"
|
|
- type.keyword: "(^|[[:space:]])(__[^ ][^_]*__|\\*\\*[^ ][^*]*\\*\\*)"
|
|
- type: "(^|[[:space:]])~~[^ ][^~]*~~"
|
|
- symbol: "^(---+|\\+---+|===+|\\+===+|___+|\\*\\*\\*+|\\+\\*\\*\\*+)\\s*$"
|
|
- statement: "^#{1,6}.*"
|
|
- identifier: "^[[:space:]]*[\\*+\\-] |^[[:space:]]*[0-9]+\\. "
|
|
- preproc: "\\b([CcRr]|[Tt][Mm])\\b|\\.{3}|(^|[[:space:]])\\-\\-($|[[:space:]])"
|
|
- constant: "\\[[^]]+\\]"
|
|
- constant: "\\[([^][]|\\[[^]]*\\])*\\]\\([^)]+\\)"
|
|
- underlined: "!\\[[^][]*\\](\\([^)]+\\)|\\[[^]]+\\])"
|
|
- underlined.url: "https?://[^ )>]+"
|
|
- special: "`.*?`|^ {4}[^\\-+*].*"
|
|
- symbol: "^```$"
|