Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/erlang/locals.scm')
| -rw-r--r-- | runtime/queries/erlang/locals.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/queries/erlang/locals.scm b/runtime/queries/erlang/locals.scm index e2212cac..c17d50a4 100644 --- a/runtime/queries/erlang/locals.scm +++ b/runtime/queries/erlang/locals.scm @@ -7,12 +7,12 @@ ; parametric `-type`s ((attribute - name: (atom) @_type + name: (atom) @keyword (arguments (binary_operator left: (call (arguments (variable) @local.definition.variable.parameter)) operator: "::") @local.scope)) - (#match? @_type "(type|opaque)")) + (#any-of? @keyword "type" "opaque" "nominal")) ; `fun`s (anonymous_function (stab_clause pattern: (arguments (variable) @local.definition.variable.parameter))) @local.scope |