mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(ecma): add tests for constants
This commit is contained in:
parent
c553e6c560
commit
d7cef15b01
1 changed files with 13 additions and 0 deletions
13
tests/query/highlights/ecma/const.js
Normal file
13
tests/query/highlights/ecma/const.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
_FOO = 4
|
||||
// <- @constant
|
||||
__A__ = 2
|
||||
// <- @constant
|
||||
_ = 2
|
||||
// <- @variable
|
||||
A_B_C = 4
|
||||
// <- @constant
|
||||
_1 = 1
|
||||
// <- @variable
|
||||
|
||||
const A = 2
|
||||
// ^ @constant
|
||||
Loading…
Add table
Add a link
Reference in a new issue