From 860e8d55eb8e3e0744d055b8d989c87cb54c36d4 Mon Sep 17 00:00:00 2001 From: John Isom Date: Wed, 14 Oct 2020 14:54:43 -0600 Subject: [PATCH] Fix function highlighting by adding lazy instead of greedy regexp quantifier --- rc/filetype/sql.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/sql.kak b/rc/filetype/sql.kak index 9ce82e67..befa9de6 100644 --- a/rc/filetype/sql.kak +++ b/rc/filetype/sql.kak @@ -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