From bbb92b2b8ea17cb477033b6d321dfad4bbde0c13 Mon Sep 17 00:00:00 2001 From: TheLeoP <53507599+TheLeoP@users.noreply.github.com> Date: Thu, 17 Aug 2023 21:17:04 -0500 Subject: fix(lua): luap injection (#5275) * fix(lua): luap injection * test(lua): check for incorrect hlgroup of injected luap * chore(lua): injections styling * chore(lua): ignore luacheck for test.lua --- tests/query/highlights/lua/test.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/query/highlights/lua/test.lua b/tests/query/highlights/lua/test.lua index efb9a9994..e8725b9fe 100644 --- a/tests/query/highlights/lua/test.lua +++ b/tests/query/highlights/lua/test.lua @@ -1,3 +1,4 @@ +-- luacheck: ignore local a = { 1, 2, 3, 4, 5 } -- ^ number ^ punctuation.bracket -- ^ variable @@ -11,3 +12,7 @@ _ = next(a) next(a) -- ^ function.builtin + +-- Checking for incorrect hlgroup of injected luap +string.match(s, "\0%d[^\n]+") +-- ^ !constant -- cgit v1.2.3-70-g09d2