aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/lua/test.lua
blob: 2261d2e4e1ff9351bb558fe882c6663f41b32762 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- luacheck: ignore
local a = { 1, 2, 3, 4, 5 }
--          ^ @number     ^ @punctuation.bracket
--    ^ @variable

local _ = next(a)
--          ^ @function.builtin
-- ^ @keyword

_ = next(a)
--   ^ @function.builtin

next(a)
-- ^ @function.builtin

-- Checking for incorrect hlgroup of injected luap
string.match(s, '\0%d[^\n]+')
--                       ^ !constant