From 04615664a41759820e162d46f0c3bf7e15a7aa28 Mon Sep 17 00:00:00 2001 From: Tom Levy Date: Sun, 31 Dec 2017 05:57:23 +0000 Subject: [PATCH 6/6] syntax: lua: remove names of libraries from keyword list In the case of known functions (e.g. "io.close"), the rules in the "Standard library" section would highlight the function so the "Keywords" rule that highlights "io." is superfluous. In other cases, we decided it's best not highlight partial names. Discussion: https://lists.gnu.org/archive/html/nano-devel/2017-12/msg00112.html Signed-off-by: Tom Levy --- syntax/lua.nanorc | 1 - 1 file changed, 1 deletion(-) diff --git a/syntax/lua.nanorc b/syntax/lua.nanorc index 020e86ff..b750dccb 100644 --- a/syntax/lua.nanorc +++ b/syntax/lua.nanorc @@ -17,7 +17,6 @@ color brightyellow ":|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return|break)\>" # Keywords -color brightyellow "\<(io|math|os|package|string|table|coroutine|debug|utf8)\." color brightyellow "\<(_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\(" # Standard library -- 2.11.0