]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/commitdiff
Use @parameter for parameter_list
authorRuben Beltran del Rio <redacted>
Wed, 4 Oct 2023 14:46:30 +0000 (16:46 +0200)
committerRuben Beltran del Rio <redacted>
Wed, 4 Oct 2023 14:46:30 +0000 (16:46 +0200)
queries/highlights.scm
test/highlight/notation.api

index 8199a2bec31db6ef871bfe0580395c79733b15bd..c8388774772a769a174a89dedd88361019bee6c3 100644 (file)
@@ -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
index f801360b659d65a55c620d784c40dd06ebf51f9f..0990fdfb06497498d6eb399113d666626887b31a 100644 (file)
@@ -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