From 63630ec08254cb8fee30e6484037f937cf6ba483 Mon Sep 17 00:00:00 2001 From: numToStr Date: Mon, 13 Dec 2021 22:18:00 +0530 Subject: highlights(lua): `next` as builtin function --- tests/query/highlights/lua/test.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/query/highlights/lua/test.lua (limited to 'tests/query/highlights/lua/test.lua') diff --git a/tests/query/highlights/lua/test.lua b/tests/query/highlights/lua/test.lua new file mode 100644 index 000000000..22da22565 --- /dev/null +++ b/tests/query/highlights/lua/test.lua @@ -0,0 +1,13 @@ +local a = { 1, 2, 3, 4, 5 } +-- ^ TSNumber ^ TSPunctBracket +-- ^ TSVariable + +local _ = next(a) +-- ^ TSFuncBuiltin +-- ^ TSKeyword + +_ = next(a) +-- ^ TSFuncBuiltin + +next(a) +-- ^ TSFuncBuiltin -- cgit v1.2.3-70-g09d2