]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - test/highlight/notation.api
Make the type definition brackets punctuation
[rbdr/tree-sitter-api-notation] / test / highlight / notation.api
index c20f11a72e10253b9d663aacd3ffebde758c62f6..f801360b659d65a55c620d784c40dd06ebf51f9f 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>
@@ -21,9 +21,9 @@ Forum.Models.Post
   //^ property
   //           ^ function
   //            ^ variable.parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                        ^ type
+  //                 ^ punctuation
+  //                  ^ type.definition
+  //                        ^ punctuation
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
@@ -35,14 +35,14 @@ Forum.Models.Post
   //^ property
   //      ^ function
   //       ^ variable.parameter
-  //                 ^ type
-  //                  ^ keyword
-  //                      ^ type
+  //                 ^ 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