mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +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:
16
runtime/syntax/xml.yaml
Normal file
16
runtime/syntax/xml.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
filetype: xml
|
||||
|
||||
detect:
|
||||
filename: "\\.(xml|sgml?|rng|plist)$"
|
||||
|
||||
rules:
|
||||
- identifier: "<.*?>"
|
||||
- comment:
|
||||
start: "<!DOCTYPE"
|
||||
end: "[/]?>"
|
||||
rules: []
|
||||
- comment:
|
||||
start: "<!--"
|
||||
end: "-->"
|
||||
rules: []
|
||||
- special: "&[^;]*;"
|
||||
Reference in New Issue
Block a user