aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-11-30 21:30:05 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-12-20 11:57:30 +0100
commit127b8569e63d57321fc4cd77b7e55781f1447365 (patch)
tree2d6fb7c7d1396b355cc8e84854519127e08e430b
parent221f6fffad12beaa928ccedae336d64b7b1c1208 (diff)
downloadrneovim-127b8569e63d57321fc4cd77b7e55781f1447365.tar.gz
rneovim-127b8569e63d57321fc4cd77b7e55781f1447365.tar.bz2
rneovim-127b8569e63d57321fc4cd77b7e55781f1447365.zip
lint
-rw-r--r--runtime/lua/man.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua
index e9f60138f4..1da8ed85fc 100644
--- a/runtime/lua/man.lua
+++ b/runtime/lua/man.lua
@@ -12,9 +12,9 @@ local function highlight_line(line, linenr)
local attr = NONE
local byte = 0 -- byte offset
- local function end_attr_hl(attr)
+ local function end_attr_hl(attr_)
for i, hl in ipairs(hls) do
- if hl.attr == attr and hl.final == -1 then
+ if hl.attr == attr_ and hl.final == -1 then
hl.final = byte
hls[i] = hl
end
@@ -108,7 +108,7 @@ local function highlight_line(line, linenr)
-- the range 0x20 - 0x3f, then 'm'. (See ECMA-48, sections 5.4 & 8.3.117)
local sgr = prev_char:match("^%[([\032-\063]*)m$")
if sgr then
- local match = ''
+ local match
while sgr and #sgr > 0 do
-- Match against SGR parameters, which may be separated by ';'
match, sgr = sgr:match("^(%d*);?(.*)")