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

View File

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