From ceb3f55f3c26c6fd7bf2951ddb6e5e23d71b42f1 Mon Sep 17 00:00:00 2001 From: Hugo Musso Gualandi Date: Wed, 28 Jul 2021 19:11:56 -0300 Subject: [PATCH] lua.kak: the builtin is called _ENV, not _E The Lua highlighting was highlighing `_E` instead of `_ENV` --- 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 ce992e5a..9155c8a1 100644 --- a/rc/filetype/lua.kak +++ b/rc/filetype/lua.kak @@ -51,8 +51,8 @@ add-highlighter shared/lua/code/function_call regex \b([a-zA-Z_]\w*)\h*(?=[\(\{] add-highlighter shared/lua/code/keyword regex \b(and|break|do|else|elseif|end|for|function|goto|if|in|not|or|repeat|return|then|until|while)\b 0:keyword add-highlighter shared/lua/code/value regex \b(false|nil|true|[0-9]+(:?\.[0-9])?(:?[eE]-?[0-9]+)?|0x[0-9a-fA-F])\b 0:value add-highlighter shared/lua/code/operator regex (\+|-|\*|/|%|\^|==?|~=|<=?|>=?|\.\.|\.\.\.|#) 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/builtin regex \b(_G|_ENV)\b 0:builtin +add-highlighter shared/lua/code/module regex \b(_G|_ENV)\b 0:module add-highlighter shared/lua/code/attribute regex \b(local)\b 0:attribute # Commands