From fdcd461e65aebc8432e4fbfd51b10856fcb65605 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Fri, 14 Apr 2023 11:41:20 -0500 Subject: 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. --- runtime/queries/erlang/locals.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/queries/erlang/locals.scm') 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 -- cgit v1.2.3-70-g09d2