From 5ec40c63b295f43e175e35ae436743eb44bd841f Mon Sep 17 00:00:00 2001 From: Caleb Heuer Date: Sat, 30 Sep 2023 11:57:30 -0600 Subject: [PATCH] Add highlighting of Lua variables, labels, and self keyword --- rc/filetype/lua.kak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc/filetype/lua.kak b/rc/filetype/lua.kak index 98354770..d08edd1f 100644 --- a/rc/filetype/lua.kak +++ b/rc/filetype/lua.kak @@ -46,14 +46,17 @@ add-highlighter shared/lua/double_string region '"' (?=?|\.\.|\.\.\.|#) 0:operator add-highlighter shared/lua/code/keyword_operator regex \b(and|or|not)\b 0:operator add-highlighter shared/lua/code/module regex \b(_G|_ENV)\b 0:module add-highlighter shared/lua/code/attribute regex \B(<[a-zA-Z_]\w*>)\B 0:attribute +add-highlighter shared/lua/code/label regex \s(::\w*::) 1:meta +add-highlighter shared/lua/code/goto_label regex "\bgoto (\w*)\b" 1:meta # Commands # ‾‾‾‾‾‾‾‾