mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Added conditionals
This commit is contained in:
parent
8d108e569f
commit
966e51f363
2 changed files with 14 additions and 2 deletions
|
|
@ -4,7 +4,13 @@ color yellow "^\s*([a-z0-9]+)"
|
|||
# Main elements
|
||||
color red "^\s*(html|head|body)"
|
||||
# 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
|
||||
color blue "\((.*?)\)"
|
||||
# Strings
|
||||
|
|
|
|||
|
|
@ -4,7 +4,13 @@ color yellow "^\s*([a-z0-9]+)"
|
|||
# Main elements
|
||||
color red "^\s*(html|head|body)"
|
||||
# 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
|
||||
color blue "\((.*?)\)"
|
||||
# Strings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue