1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 08:35:39 +01:00

Added conditionals

This commit is contained in:
Andrea Dejan Grande 2019-04-28 02:55:31 +02:00
parent 8d108e569f
commit 966e51f363
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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