summaryrefslogtreecommitdiff
path: root/queries/heex/locals.scm
diff options
context:
space:
mode:
authorClay <connorlay@pm.me>2022-01-23 18:09:29 -0800
committerChristian Clason <christian.clason@uni-due.de>2022-01-24 08:29:42 +0100
commit9e90866bcea3e392126c4eb90fde56b1c0b56b69 (patch)
tree1b8c9cd0c572a51316be366536dca06f021fe2ce /queries/heex/locals.scm
parentc7d5ba7212d0e1d38e2b714eabe4452a80dfe945 (diff)
Upgrade to HEEx parser 0.3.0
Diffstat (limited to 'queries/heex/locals.scm')
-rw-r--r--queries/heex/locals.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/queries/heex/locals.scm b/queries/heex/locals.scm
new file mode 100644
index 00000000..3f99132e
--- /dev/null
+++ b/queries/heex/locals.scm
@@ -0,0 +1,11 @@
+; HEEx tags and components are references
+[
+ (tag_name)
+ (component_name)
+] @reference
+
+; Create a new scope within each HEEx tag or component
+[
+ (tag)
+ (component)
+] @scope