This commit is contained in:
Leandro Afonso
2025-09-27 18:39:59 +01:00
commit f0cdef9259
1220 changed files with 77975 additions and 0 deletions

16
micro/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: "#[^{].*$|#$"