Fix function highlighting by adding lazy instead of greedy regexp quantifier

This commit is contained in:
John Isom 2020-10-14 14:54:43 -06:00
parent 600be827b3
commit 860e8d55eb

View File

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