micro/runtime/syntax/haml.micro

17 lines
624 B
Text
Raw Normal View History

syntax "haml" "\.haml$"
2016-03-21 16:16:02 +00:00
color symbol "-|="
color default "->|=>"
color constant "([ ]|^)%[0-9A-Za-z_]+>"
color special ":[0-9A-Za-z_]+>"
color type "\.[A-Za-z_]+>"
2016-03-21 16:16:02 +00:00
## Double quote & single quote
color constant.string ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
color constant.string "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
2016-03-21 16:16:02 +00:00
## Vars
color identifier "#\{[^}]*\}"
color identifier.var "(@|@@)[0-9A-Z_a-z]+"
2016-03-21 16:16:02 +00:00
## Comments
color comment "#[^{].*$" "#$"
2016-03-21 16:16:02 +00:00