aboutsummaryrefslogtreecommitdiffstats
path: root/queries/bicep/locals.scm
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2024-02-02 00:12:17 -0500
committerChristian Clason <c.clason@uni-graz.at>2024-02-02 08:24:59 +0100
commit8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a (patch)
treeb9fc3cb1d4fc3eade5b0e40fd9b83769c57a872b /queries/bicep/locals.scm
parentchore(kconfig): update highlights (diff)
downloadnvim-treesitter-8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a.tar
nvim-treesitter-8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a.tar.gz
nvim-treesitter-8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a.tar.bz2
nvim-treesitter-8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a.tar.lz
nvim-treesitter-8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a.tar.xz
nvim-treesitter-8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a.tar.zst
nvim-treesitter-8b99311ca1171015bda7d2bb2250a1aaf2d9ea8a.zip
chore(bicep): update queries and add scanner
Diffstat (limited to 'queries/bicep/locals.scm')
-rw-r--r--queries/bicep/locals.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/queries/bicep/locals.scm b/queries/bicep/locals.scm
index 137753ae2..cc9c3c2cf 100644
--- a/queries/bicep/locals.scm
+++ b/queries/bicep/locals.scm
@@ -36,7 +36,8 @@
(compatible_identifier) @local.definition.field
(_))
-(import_name) @local.definition.import
+(user_defined_function
+ name: (identifier) @local.definition.function)
(module_declaration
(identifier) @local.definition.namespace)
@@ -45,6 +46,10 @@
(identifier) @local.definition.parameter
(_))
+(parameter
+ .
+ (identifier) @local.definition.parameter)
+
(type_declaration
(identifier) @local.definition.type
(_))