From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 14:50:19 +0000 (+0200) Subject: Use just parameter X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/commitdiff_plain/b95c61865da09bf2e98eeb62c82c914f21e36903?ds=sidebyside Use just parameter --- diff --git a/queries/highlights.scm b/queries/highlights.scm index 4b22d26..0a6d9ea 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -2,8 +2,8 @@ (member_type) @operator (member) @property (parameter_list) @function -(parameter_list (identifier (optional_value) @variable.parameter.optional)) -(parameter_list (identifier) @keyword) +(parameter_list (identifier (optional_value) @parameter.optional)) +(parameter_list (identifier) @parameter) (identifier) @type.definition (throw_statement) @operator (return_statement) @operator diff --git a/test/highlight/notation.api b/test/highlight/notation.api index 0990fdf..aa7bc71 100644 --- a/test/highlight/notation.api +++ b/test/highlight/notation.api @@ -49,6 +49,6 @@ Forum.Models.Post //<- operator //^ property // ^ function - // ^ variable.parameter.optional + // ^ parameter.optional // ^ punctuation // ^ type.definition