mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00

committed by
Justin M. Keyes

parent
0480e991d2
commit
fdd8dcae01
@@ -107,7 +107,9 @@ local function highlight_line(line, linenr)
|
||||
-- followed by '[', then a series of parameter and intermediate bytes in
|
||||
-- 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
|
||||
-- Ignore escape sequences with : characters, as specified by ITU's T.416
|
||||
-- Open Document Architecture and interchange format.
|
||||
if sgr and not string.find(sgr, ":") then
|
||||
local match
|
||||
while sgr and #sgr > 0 do
|
||||
-- Match against SGR parameters, which may be separated by ';'
|
||||
|
Reference in New Issue
Block a user