]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - test/highlight/notation.api
Test more specific highlighting
[rbdr/tree-sitter-api-notation] / test / highlight / notation.api
index c20f11a72e10253b9d663aacd3ffebde758c62f6..aa7bc71ea7e91520bd30ffc60c9092aac622aa6c 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,21 +34,21 @@ 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>)
   //<- operator
   //^ property
   //        ^ function
-  //          ^ variable.parameter.optional
-  //                       ^ type
-  //                        ^ keyword
+  //          ^ parameter.optional
+  //                       ^ punctuation
+  //                        ^ type.definition