Fix function highlighting by adding lazy instead of greedy regexp quantifier
This commit is contained in:
parent
600be827b3
commit
860e8d55eb
|
@ -100,7 +100,7 @@ evaluate-commands %sh{
|
|||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
add-highlighter shared/sql/code/ regex '(?i)\b(${functions})\(.*\)' 0:function
|
||||
add-highlighter shared/sql/code/ regex '(?i)\b(${functions})\(.*?\)' 0:function
|
||||
add-highlighter shared/sql/code/ regex '(?i)\b(${data_types_fn})\(.*?\)' 0:type
|
||||
add-highlighter shared/sql/code/ regex '(?i)\b(${keywords})\b' 0:keyword
|
||||
add-highlighter shared/sql/code/ regex '(?i)\b(${operators})\b' 0:operator
|
||||
|
|
Loading…
Reference in New Issue
Block a user