micro/runtime/syntax/reST.yaml

25 lines
609 B
YAML
Raw Normal View History

filetype: rst
2017-03-21 18:55:22 +00:00
detect:
filename: "\\.rest$|\\.rst$"
rules:
2017-03-21 18:55:22 +00:00
- identifier: "^[\\*+\\-] "
- identifier: "^[0-9]+?\\. "
- type: "\\*[^*]+?\\*"
- type.keyword: "\\*\\*[^\\*]+\\*\\*"
- symbol: "::"
- underlined.url: "`[^`]+`_{1,2}"
- special: "``[^`]+``"
- comment: "^\\.\\. .*$"
- underlined: "^__ .*$"
- statement: "^###+$"
- statement: "^\\*\\*\\*+$"
- preproc: "^===+$"
- identifier: "^---+$"
- type.keyword: "^\\^\\^\\^+$"
- constant: "^\"\"\"+$"
- underlined.url: "http(s)?://[^ )>]+"
- preproc: "\\+[\\-=+]+\\+"
- preproc: "\\|"