]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - test/highlight/notation.api
Use @parameter for parameter_list
[rbdr/tree-sitter-api-notation] / test / highlight / notation.api
index c20f11a72e10253b9d663aacd3ffebde758c62f6..0990fdfb06497498d6eb399113d666626887b31a 100644 (file)
@@ -1,15 +1,15 @@
 Forum.Models.Post
-// <- keyword
-//    ^ keyword
-//           ^ keyword
+// <- type.definition
+//    ^ type.definition
+//           ^ type.definition
   +glyphs <Array<String>>
   //<- operator
   //^ property
-  //      ^ type
-  //       ^ keyword
-  //            ^ type
-  //             ^ keyword
-  //                    ^ type
+  //      ^ punctuation
+  //       ^ type.definition
+  //            ^ punctuation
+  //             ^ type.definition
+  //                    ^ punctuation
 
   -id <UUID>
   -created_at <Date>
@@ -20,10 +20,10 @@ Forum.Models.Post
   //<- operator
   //^ property
   //           ^ function
-  //            ^ variable.parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                        ^ type
+  //            ^ parameter
+  //                 ^ punctuation
+  //                  ^ type.definition
+  //                        ^ punctuation
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
@@ -34,15 +34,15 @@ Forum.Models.Post
   //<- operator
   //^ property
   //      ^ function
-  //       ^ variable.parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                      ^ type
+  //       ^ parameter
+  //                 ^ punctuation
+  //                  ^ type.definition
+  //                      ^ punctuation
   //                       ^ function
   //                         ^ operator
-  //                            ^ keyword
+  //                            ^ type.definition
   //                                                              ^ operator
-  //                                                                 ^ keyword
+  //                                                                 ^ type.definition
   ::get(id <UUID>) => Promise<Forum.Models.Post>
   #update(text <String>) => Promise<void>
   #transform([transformer] <Function<T>(T) => boolean>)
@@ -50,5 +50,5 @@ Forum.Models.Post
   //^ property
   //        ^ function
   //          ^ variable.parameter.optional
-  //                       ^ type
-  //                        ^ keyword
+  //                       ^ punctuation
+  //                        ^ type.definition