mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Improve new syntax files and fix a region glitch
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
filetype: rst
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.rest$|\\.rst$"
|
||||
|
||||
rules:
|
||||
- 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: "\\|"
|
||||
- statement: "\\*\\*[^*]+\\*\\*"
|
||||
- preproc: "::"
|
||||
- constant.string: "`[^`]+`_{1,2}"
|
||||
- constant.string: "``[^`]+``"
|
||||
- identifier: "^\\.\\. .*$"
|
||||
- identifier: "^__ .*$"
|
||||
- type: "^###+$"
|
||||
- type: "^\\*\\*\\*+$"
|
||||
- special: "^===+$"
|
||||
- special: "^---+$"
|
||||
- special: "^\\^\\^\\^+$"
|
||||
- special: "^\"\"\"+$"
|
||||
|
||||
Reference in New Issue
Block a user