mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
Shrinked parenthesis regex
This commit is contained in:
parent
966e51f363
commit
5aaa682af6
|
@ -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…
Reference in New Issue
Block a user