mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(lua): next as builtin function
This commit is contained in:
parent
143ef2f066
commit
63630ec082
2 changed files with 16 additions and 0 deletions
13
tests/query/highlights/lua/test.lua
Normal file
13
tests/query/highlights/lua/test.lua
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue