summaryrefslogtreecommitdiff
path: root/rc/filetype/lua.kak
diff options
context:
space:
mode:
authorHugo Musso Gualandi <hugo_musso_gualandi@hotmail.com>2021-07-28 19:48:09 -0300
committerHugo Musso Gualandi <hugo_musso_gualandi@hotmail.com>2021-08-04 13:24:16 -0300
commitbe09ff4680096ac79f88f3e1808fd491704620ca (patch)
tree04f14f21c4aa641f78074a097733bac81792eb7b /rc/filetype/lua.kak
parentd3d3c77ab901f3b40071532e268a610ecbab3da3 (diff)
lua.kak: highlight and/or/not as operators
Diffstat (limited to 'rc/filetype/lua.kak')
-rw-r--r--rc/filetype/lua.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/lua.kak b/rc/filetype/lua.kak
index 2fb0148c..1a9da139 100644
--- a/rc/filetype/lua.kak
+++ b/rc/filetype/lua.kak
@@ -48,9 +48,9 @@ add-highlighter shared/lua/comment region '--' $ fill com
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
-add-highlighter shared/lua/code/keyword regex \b(and|break|do|else|elseif|end|for|function|goto|if|in|local|not|or|repeat|return|then|until|while)\b 0:keyword
+add-highlighter shared/lua/code/keyword regex \b(break|do|else|elseif|end|for|function|goto|if|in|local|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/operator regex (\+|-|\*|/|%|\^|==?|~=|<=?|>=?|\.\.|\.\.\.|#|\band\b|\bor\b|\bnot\b) 0:operator
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(<[a-zA-Z_]\w*>)\B 0:attribute