From baa51e934ce057af5b5be829d6a73a3e8b4c03d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 2 Feb 2020 11:19:39 +0100 Subject: lexers: also apply 7e9e0a2 to html and wsf lexers Adapt in_tag to surrounding coding stlye and use the same simplified version in html, wsf and xml lexers. --- lua/lexers/xml.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lexers/xml.lua') diff --git a/lua/lexers/xml.lua b/lua/lexers/xml.lua index 7702444..e0098e5 100644 --- a/lua/lexers/xml.lua +++ b/lua/lexers/xml.lua @@ -20,7 +20,7 @@ local dq_str = l.delimited_range('"', false, true) local string = #S('\'"') * l.last_char_includes('=') * token(l.STRING, sq_str + dq_str) -local in_tag = #P((1 - S"><")^0 * ">") +local in_tag = #P((1 - S'><')^0 * '>') -- Numbers. local number = #l.digit * l.last_char_includes('=') * -- cgit v1.2.3