aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/erlang/locals.scm
diff options
context:
space:
mode:
authorMichael Davis2023-04-14 16:41:20 +0000
committerBlaž Hrastnik2024-03-21 15:20:29 +0000
commitfdcd461e65aebc8432e4fbfd51b10856fcb65605 (patch)
tree5efb57366aa5015c1cf9073beca2f9ea3f258fda /runtime/queries/erlang/locals.scm
parent459eb9a4c12a4c650c551a4fe2746b3187fefadd (diff)
Update tree-sitter-erlang and highlights
A few changes: * 0-arity type specs like the following previously would not have the expected 'variable.parameter' highlighting for the return type: -spec foo() -> Value when Value :: term(). * Highlight module, type and function docs as documentation comments and inject markdown into them. * Replace `#match?` predicates with `#any-of?` where possible. * Remove custom auto-pairs. Now that Erlang uses markdown for documentation, the asciidoc-style backtick-singlequote pair is no longer useful.
Diffstat (limited to 'runtime/queries/erlang/locals.scm')
-rw-r--r--runtime/queries/erlang/locals.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queries/erlang/locals.scm b/runtime/queries/erlang/locals.scm
index 7379926b..156e4038 100644
--- a/runtime/queries/erlang/locals.scm
+++ b/runtime/queries/erlang/locals.scm
@@ -1,7 +1,7 @@
; Specs and Callbacks
(attribute
(stab_clause
- pattern: (arguments (variable) @local.definition)
+ pattern: (arguments (variable)? @local.definition)
; If a spec uses a variable as the return type (and later a `when` clause to type it):
body: (variable)? @local.definition)) @local.scope