File: haml.yaml

package info (click to toggle)
micro 2.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,828 kB
  • sloc: sh: 247; makefile: 77; xml: 53
file content (16 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: "#[^{].*$|#$"