mirror of
https://github.com/scopatz/nanorc
synced 2024-11-06 17:50:01 +01:00
bba53c3940
Duplicate syntax definition names may cause problems. Since nano comes with predefined all-lowercase syntax definitions, we use uppercase letters everywhere to reduce the risk of future conflicts
17 lines
594 B
Plaintext
17 lines
594 B
Plaintext
syntax "Haml" "\.haml$"
|
|
|
|
color cyan "-|="
|
|
color white "->|=>"
|
|
icolor cyan "([ ]|^)%[0-9A-Z_]+\>"
|
|
icolor magenta ":[0-9A-Z_]+\>"
|
|
icolor yellow "\.[A-Z_]+\>"
|
|
## Double quote & single quote
|
|
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
|
|
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
|
|
## Vars
|
|
color brightgreen "#\{[^}]*\}"
|
|
color brightblue "(@|@@)[0-9A-Z_a-z]+"
|
|
## Comments
|
|
color brightcyan "#[^{].*$" "#$"
|
|
|