mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Add syntax highlighting files
This commit is contained in:
16
syntax_files/haml.micro
Normal file
16
syntax_files/haml.micro
Normal file
@@ -0,0 +1,16 @@
|
||||
syntax "Haml" "\.haml$"
|
||||
|
||||
color cyan "-|="
|
||||
color white "->|=>"
|
||||
icolor cyan "([ ]|^)%[0-9A-Z_]+\b"
|
||||
icolor magenta ":[0-9A-Z_]+\b"
|
||||
icolor yellow "\.[A-Z_]+\b"
|
||||
## 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 "#[^{].*$" "#$"
|
||||
|
||||
Reference in New Issue
Block a user