mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Shrinked parenthesis regex
This commit is contained in:
parent
966e51f363
commit
5aaa682af6
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
syntax "Jade" "\.jade$"
|
syntax "Pug" "\.pug$"
|
||||||
# Elements
|
# Elements
|
||||||
color yellow "^\s*([a-z0-9]+)"
|
color yellow "^\s*([a-z0-9]+)"
|
||||||
# Main elements
|
# Main elements
|
||||||
|
|
@ -12,7 +12,7 @@ color white "^\s*(\-)"
|
||||||
# Conditionals
|
# Conditionals
|
||||||
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
color blue "\((.*?)\)"
|
color blue start="\(" end="\)"
|
||||||
# Strings
|
# Strings
|
||||||
color cyan "('[^']*')|(\"[^\"]*\")"
|
color cyan "('[^']*')|(\"[^\"]*\")"
|
||||||
# Parenthesis, commas, equals
|
# Parenthesis, commas, equals
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ color white "^\s*(\-)"
|
||||||
# Conditionals
|
# Conditionals
|
||||||
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s"
|
||||||
# Parenthesis content
|
# Parenthesis content
|
||||||
color blue "\((.*?)\)"
|
color blue start="\(" end="\)"
|
||||||
# Strings
|
# Strings
|
||||||
color cyan "('[^']*')|(\"[^\"]*\")"
|
color cyan "('[^']*')|(\"[^\"]*\")"
|
||||||
# Parenthesis, commas, equals
|
# Parenthesis, commas, equals
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue