From 43d9f59fda3235227590fdd305e3c0f9e3b80b41 Mon Sep 17 00:00:00 2001 From: Hugo Musso Gualandi Date: Wed, 28 Jul 2021 19:10:43 -0300 Subject: [PATCH] lua.kak: keyword should have higher priority than function call Currently, the "return" in `return {}` is highlighted as a function call, instead of being highlighted as a keyword --- rc/filetype/lua.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/lua.kak b/rc/filetype/lua.kak index afc812d0..ce992e5a 100644 --- a/rc/filetype/lua.kak +++ b/rc/filetype/lua.kak @@ -46,14 +46,14 @@ add-highlighter shared/lua/double_string region '"' (?=?|\.\.|\.\.\.|#) 0:operator add-highlighter shared/lua/code/builtin regex \b(_G|_E)\b 0:builtin add-highlighter shared/lua/code/module regex \b(_G|_E)\b 0:module add-highlighter shared/lua/code/attribute regex \b(local)\b 0:attribute -add-highlighter shared/lua/code/function_declaration regex \b(?:function\h+)(?:\w+\h*\.\h*)*([a-zA-Z_]\w*)\( 1:function -add-highlighter shared/lua/code/function_call regex \b([a-zA-Z_]\w*)\h*(?=[\(\{]) 1:function # Commands # ‾‾‾‾‾‾‾‾