]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/haml.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / haml.yaml
1 filetype: haml
2
3 detect: 
4     filename: "\\.haml$"
5
6 rules:
7     - symbol: "-|="
8     - default: "->|=>"
9     - constant: "([  ]|^)%[0-9A-Za-z_]+>"
10     - special: ":[0-9A-Za-z_]+>"
11     - type: "\\.[A-Za-z_]+>"
12     - constant.string: "\"([^\"]|(\\\\\"))*\"|%[QW]?\\{[^}]*\\}|%[QW]?\\([^)]*\\)|%[QW]?<[^>]*>|%[QW]?\\$[^$]*\\$|%[QW]?\\^[^^]*\\^|%[QW]?![^!]*!"
13     - constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!"
14     - identifier: "#\\{[^}]*\\}"
15     - identifier.var: "(@|@@)[0-9A-Z_a-z]+"
16     - comment: "#[^{].*$|#$"