From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 14:46:30 +0000 (+0200) Subject: Use @parameter for parameter_list X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/commitdiff_plain/c5d81ecf5c440aa8eee2929ffcee8f52fd1daa38?hp=fd7cea8fc96bfe782ca4576100c39c6ffd15e150 Use @parameter for parameter_list --- diff --git a/queries/highlights.scm b/queries/highlights.scm index 8199a2b..c838877 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -3,7 +3,7 @@ (member) @property (parameter_list) @function (parameter_list (identifier (optional_value) @variable.parameter.optional)) -(parameter_list (identifier) @variable.parameter) +(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 f801360..0990fdf 100644 --- a/test/highlight/notation.api +++ b/test/highlight/notation.api @@ -20,7 +20,7 @@ Forum.Models.Post //<- operator //^ property // ^ function - // ^ variable.parameter + // ^ parameter // ^ punctuation // ^ type.definition // ^ punctuation @@ -34,7 +34,7 @@ Forum.Models.Post //<- operator //^ property // ^ function - // ^ variable.parameter + // ^ parameter // ^ punctuation // ^ type.definition // ^ punctuation