From d7cef15b01e04f8322900f4b0294be582d31ab9d Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Fri, 3 Mar 2023 20:04:08 -0500 Subject: feat(ecma): add tests for constants --- tests/query/highlights/ecma/const.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/query/highlights/ecma/const.js (limited to 'tests/query/highlights/ecma') 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 -- cgit v1.2.3-70-g09d2