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

index 4b22d268278b983d60ff25f4a16fd9dc01ceb983..0a6d9ea3fabf403148f44354c203e3a5c56429ca 100644 (file)
@@ -2,8 +2,8 @@
 (member_type) @operator
 (member) @property
 (parameter_list) @function
 (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
 (identifier) @type.definition
 (throw_statement) @operator
 (return_statement) @operator
index 0990fdfb06497498d6eb399113d666626887b31a..aa7bc71ea7e91520bd30ffc60c9092aac622aa6c 100644 (file)
@@ -49,6 +49,6 @@ Forum.Models.Post
   //<- operator
   //^ property
   //        ^ function
   //<- operator
   //^ property
   //        ^ function
-  //          ^ variable.parameter.optional
+  //          ^ parameter.optional
   //                       ^ punctuation
   //                        ^ type.definition
   //                       ^ punctuation
   //                        ^ type.definition