mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
Added conditionals
This commit is contained in:
parent
8d108e569f
commit
966e51f363
|
@ -4,7 +4,13 @@ color yellow "^\s*([a-z0-9]+)"
|
||||||
# Main elements
|
# Main elements
|
||||||
color red "^\s*(html|head|body)"
|
color red "^\s*(html|head|body)"
|
||||||
# Includes
|
# Includes
|
||||||
color magenta "^\s*(include)"
|
icolor magenta "^\s*(include)"
|
||||||
|
# Variables
|
||||||
|
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
|
||||||
|
icolor magenta "^\s*(\-)\s(var)$" "^\s*(\-)\s(var)\s"
|
||||||
|
color white "^\s*(\-)"
|
||||||
|
# Conditionals
|
||||||
|
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
color blue "\((.*?)\)"
|
color blue "\((.*?)\)"
|
||||||
# Strings
|
# Strings
|
||||||
|
|
|
@ -4,7 +4,13 @@ color yellow "^\s*([a-z0-9]+)"
|
||||||
# Main elements
|
# Main elements
|
||||||
color red "^\s*(html|head|body)"
|
color red "^\s*(html|head|body)"
|
||||||
# Includes
|
# Includes
|
||||||
color magenta "^\s*(include)"
|
icolor magenta "^\s*(include)"
|
||||||
|
# Variables
|
||||||
|
color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)"
|
||||||
|
icolor magenta "^\s*(\-)\s(var)$" "^\s*(\-)\s(var)\s"
|
||||||
|
color white "^\s*(\-)"
|
||||||
|
# Conditionals
|
||||||
|
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
color blue "\((.*?)\)"
|
color blue "\((.*?)\)"
|
||||||
# Strings
|
# Strings
|
||||||
|
|
Loading…
Reference in New Issue
Block a user