]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - test/highlight/notation.api
Use just parameter
[rbdr/tree-sitter-api-notation] / test / highlight / notation.api
index b798549b12b8be25ceacfce3db1b3c4916eca6af..aa7bc71ea7e91520bd30ffc60c9092aac622aa6c 100644 (file)
@@ -1,15 +1,15 @@
 Forum.Models.Post
 Forum.Models.Post
-// <- keyword
-//    ^ keyword
-//           ^ keyword
+// <- type.definition
+//    ^ type.definition
+//           ^ type.definition
   +glyphs <Array<String>>
   //<- operator
   //^ property
   +glyphs <Array<String>>
   //<- operator
   //^ property
-  //      ^ type
-  //       ^ keyword
-  //            ^ type
-  //             ^ keyword
-  //                    ^ type
+  //      ^ punctuation
+  //       ^ type.definition
+  //            ^ punctuation
+  //             ^ type.definition
+  //                    ^ punctuation
 
   -id <UUID>
   -created_at <Date>
 
   -id <UUID>
   -created_at <Date>
@@ -21,9 +21,9 @@ Forum.Models.Post
   //^ property
   //           ^ function
   //            ^ parameter
   //^ property
   //           ^ function
   //            ^ parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                        ^ type
+  //                 ^ punctuation
+  //                  ^ type.definition
+  //                        ^ punctuation
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
@@ -35,14 +35,20 @@ Forum.Models.Post
   //^ property
   //      ^ function
   //       ^ parameter
   //^ property
   //      ^ function
   //       ^ parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                      ^ type
+  //                 ^ punctuation
+  //                  ^ type.definition
+  //                      ^ punctuation
   //                       ^ function
   //                         ^ operator
   //                       ^ function
   //                         ^ operator
-  //                            ^ keyword
+  //                            ^ type.definition
   //                                                              ^ operator
   //                                                              ^ operator
-  //                                                                 ^ keyword
+  //                                                                 ^ type.definition
   ::get(id <UUID>) => Promise<Forum.Models.Post>
   #update(text <String>) => Promise<void>
   ::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
+  //          ^ parameter.optional
+  //                       ^ punctuation
+  //                        ^ type.definition