]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - test/highlight/notation.api
Update readme
[rbdr/tree-sitter-api-notation] / test / highlight / notation.api
index c20f11a72e10253b9d663aacd3ffebde758c62f6..f161647212c80f415dac001309618c522381cf01 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
   +glyphs <Array<String>>
   //<- operator
-  //^ property
-  //      ^ type
-  //       ^ keyword
-  //            ^ type
-  //             ^ keyword
-  //                    ^ type
+  //^ method
+  //      ^ punctuation
+  //       ^ type.definition
+  //            ^ punctuation
+  //             ^ type.definition
+  //                    ^ punctuation
 
   -id <UUID>
   -created_at <Date>
 
   -id <UUID>
   -created_at <Date>
@@ -18,12 +18,12 @@ Forum.Models.Post
   -author <Author>
   ~>textUpdated(text <String>)
   //<- operator
   -author <Author>
   ~>textUpdated(text <String>)
   //<- operator
-  //^ property
+  //^ method
   //           ^ function
   //           ^ function
-  //            ^ variable.parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                        ^ type
+  //            ^ parameter
+  //                 ^ punctuation
+  //                  ^ type.definition
+  //                        ^ punctuation
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
@@ -32,23 +32,23 @@ Forum.Models.Post
   <+textWillUpdate(text <String>)
   ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
   //<- operator
   <+textWillUpdate(text <String>)
   ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
   //<- operator
-  //^ property
+  //^ method
   //      ^ function
   //      ^ function
-  //       ^ variable.parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                      ^ type
+  //       ^ parameter
+  //                 ^ 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>
   #transform([transformer] <Function<T>(T) => boolean>)
   //<- operator
   ::get(id <UUID>) => Promise<Forum.Models.Post>
   #update(text <String>) => Promise<void>
   #transform([transformer] <Function<T>(T) => boolean>)
   //<- operator
-  //^ property
+  //^ method
   //        ^ function
   //        ^ function
-  //          ^ variable.parameter.optional
-  //                       ^ type
-  //                        ^ keyword
+  //          ^ parameter.optional
+  //                       ^ punctuation
+  //                        ^ type.definition