Add converted syntax files

This commit is contained in:
Zachary Yedidia
2017-03-21 14:55:22 -04:00
parent fa7f89a400
commit b977bf5cca
104 changed files with 1807 additions and 1233 deletions

16
runtime/syntax/haml.yaml Normal file
View File

@@ -0,0 +1,16 @@
filetype: haml
detect:
filename: "\\.haml$"
rules:
- symbol: "-|="
- default: "->|=>"
- constant: "([ ]|^)%[0-9A-Za-z_]+>"
- special: ":[0-9A-Za-z_]+>"
- type: "\\.[A-Za-z_]+>"
- constant.string: "\"([^\"]|(\\\\\"))*\"|%[QW]?\\{[^}]*\\}|%[QW]?\\([^)]*\\)|%[QW]?<[^>]*>|%[QW]?\\$[^$]*\\$|%[QW]?\\^[^^]*\\^|%[QW]?![^!]*!"
- constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!"
- identifier: "#\\{[^}]*\\}"
- identifier.var: "(@|@@)[0-9A-Z_a-z]+"
- comment: "#[^{].*$|#$"