aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/ecma/const.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/ecma/const.js')
-rw-r--r--tests/query/highlights/ecma/const.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/query/highlights/ecma/const.js b/tests/query/highlights/ecma/const.js
new file mode 100644
index 000000000..2b778fd15
--- /dev/null
+++ b/tests/query/highlights/ecma/const.js
@@ -0,0 +1,13 @@
+_FOO = 4
+// <- @constant
+__A__ = 2
+// <- @constant
+_ = 2
+// <- @variable
+A_B_C = 4
+// <- @constant
+_1 = 1
+// <- @variable
+
+const A = 2
+// ^ @constant