]> 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 f0a9a7a3f9c7cf8651070b4cc6f93a85ef76f163..f161647212c80f415dac001309618c522381cf01 100644 (file)
@@ -4,12 +4,12 @@ Forum.Models.Post
 //           ^ type.definition
   +glyphs <Array<String>>
   //<- operator
 //           ^ type.definition
   +glyphs <Array<String>>
   //<- operator
-  //^ property
-  //      ^ type
+  //^ method
+  //      ^ punctuation
   //       ^ type.definition
   //       ^ type.definition
-  //            ^ type
+  //            ^ punctuation
   //             ^ type.definition
   //             ^ type.definition
-  //                    ^ type
+  //                    ^ 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
+  //            ^ parameter
+  //                 ^ punctuation
   //                  ^ type.definition
   //                  ^ type.definition
-  //                        ^ type
+  //                        ^ punctuation
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
@@ -32,12 +32,12 @@ 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
+  //       ^ parameter
+  //                 ^ punctuation
   //                  ^ type.definition
   //                  ^ type.definition
-  //                      ^ type
+  //                      ^ punctuation
   //                       ^ function
   //                         ^ operator
   //                            ^ type.definition
   //                       ^ function
   //                         ^ operator
   //                            ^ type.definition
@@ -47,8 +47,8 @@ Forum.Models.Post
   #update(text <String>) => Promise<void>
   #transform([transformer] <Function<T>(T) => boolean>)
   //<- operator
   #update(text <String>) => Promise<void>
   #transform([transformer] <Function<T>(T) => boolean>)
   //<- operator
-  //^ property
+  //^ method
   //        ^ function
   //        ^ function
-  //          ^ variable.parameter.optional
-  //                       ^ type
+  //          ^ parameter.optional
+  //                       ^ punctuation
   //                        ^ type.definition
   //                        ^ type.definition