mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
Use new syntax highlighting engine from zyedidia/highlight
This changes all the syntax files in the runtime directory and also changes how syntax highlighting is done from inside micro.
This commit is contained in:
18
runtime/syntax/reST.yaml
Normal file
18
runtime/syntax/reST.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
filetype: rst
|
||||
|
||||
detect:
|
||||
filename: "\\.rest$|\\.rst$"
|
||||
|
||||
rules:
|
||||
- statement: "\\*\\*[^*]+\\*\\*"
|
||||
- preproc: "::"
|
||||
- constant.string: "`[^`]+`_{1,2}"
|
||||
- constant.string: "``[^`]+``"
|
||||
- identifier: "^\\.\\. .*$"
|
||||
- identifier: "^__ .*$"
|
||||
- type: "^###+$"
|
||||
- type: "^\\*\\*\\*+$"
|
||||
- special: "^===+$"
|
||||
- special: "^---+$"
|
||||
- special: "^\\^\\^\\^+$"
|
||||
- special: "^\"\"\"+$"
|
||||
Reference in New Issue
Block a user