From 4075376a2543f6cc968c70c4aac58b8cffcc7c11 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Sat, 6 Jul 2024 19:20:59 +0200 Subject: [PATCH] feat(gotmpl,helm): add locals (wip) --- queries/gotmpl/locals.scm | 12 ++++++++++++ queries/helm/locals.scm | 1 + 2 files changed, 13 insertions(+) create mode 100644 queries/gotmpl/locals.scm create mode 100644 queries/helm/locals.scm diff --git a/queries/gotmpl/locals.scm b/queries/gotmpl/locals.scm new file mode 100644 index 000000000..528e9fabb --- /dev/null +++ b/queries/gotmpl/locals.scm @@ -0,0 +1,12 @@ +[ + (if_action) + (range_action) + (block_action) + (with_action) + (define_action) +] @local.scope + +(variable_definition + variable: (variable) @local.definition.var) + +(variable) @local.reference diff --git a/queries/helm/locals.scm b/queries/helm/locals.scm new file mode 100644 index 000000000..6ffb4b7d4 --- /dev/null +++ b/queries/helm/locals.scm @@ -0,0 +1 @@ +; inherits: gotmpl