nvim-treesitter/tests/query/highlights/lua/test.lua

19 lines
370 B
Lua
Raw Normal View History

-- luacheck: ignore
local a = { 1, 2, 3, 4, 5 }
2023-12-24 12:52:21 +01:00
-- ^ @number ^ @punctuation.bracket
-- ^ @variable
local _ = next(a)
2023-12-24 12:52:21 +01:00
-- ^ @function.builtin
-- ^ @keyword
_ = next(a)
2023-12-24 12:52:21 +01:00
-- ^ @function.builtin
next(a)
2023-12-24 12:52:21 +01:00
-- ^ @function.builtin
-- Checking for incorrect hlgroup of injected luap
string.match(s, "\0%d[^\n]+")
2023-12-24 12:52:21 +01:00
-- ^ @!constant