]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - test/highlight/notation.api
Simplify dir
[rbdr/tree-sitter-api-notation] / test / highlight / notation.api
index b798549b12b8be25ceacfce3db1b3c4916eca6af..c20f11a72e10253b9d663aacd3ffebde758c62f6 100644 (file)
@@ -20,7 +20,7 @@ Forum.Models.Post
   //<- operator
   //^ property
   //           ^ function
-  //            ^ parameter
+  //            ^ variable.parameter
   //                 ^ type
   //                  ^ keyword
   //                        ^ type
@@ -34,7 +34,7 @@ Forum.Models.Post
   //<- operator
   //^ property
   //      ^ function
-  //       ^ parameter
+  //       ^ variable.parameter
   //                 ^ type
   //                  ^ keyword
   //                      ^ type
@@ -45,4 +45,10 @@ Forum.Models.Post
   //                                                                 ^ keyword
   ::get(id <UUID>) => Promise<Forum.Models.Post>
   #update(text <String>) => Promise<void>
-  #transform(transformer <Function<T>(T) => boolean>)
+  #transform([transformer] <Function<T>(T) => boolean>)
+  //<- operator
+  //^ property
+  //        ^ function
+  //          ^ variable.parameter.optional
+  //                       ^ type
+  //                        ^ keyword