]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/commitdiff
Make the type definition brackets punctuation
authorRuben Beltran del Rio <redacted>
Wed, 4 Oct 2023 14:43:30 +0000 (16:43 +0200)
committerRuben Beltran del Rio <redacted>
Wed, 4 Oct 2023 14:43:30 +0000 (16:43 +0200)
queries/highlights.scm
test/highlight/notation.api

index cf92992bd72c6f263dc7e5fea91782f24e0760c2..8199a2bec31db6ef871bfe0580395c79733b15bd 100644 (file)
@@ -1,4 +1,4 @@
-(type_annotation) @type
+(type_annotation) @punctuation
 (member_type) @operator
 (member) @property
 (parameter_list) @function
 (member_type) @operator
 (member) @property
 (parameter_list) @function
index f0a9a7a3f9c7cf8651070b4cc6f93a85ef76f163..f801360b659d65a55c620d784c40dd06ebf51f9f 100644 (file)
@@ -5,11 +5,11 @@ Forum.Models.Post
   +glyphs <Array<String>>
   //<- operator
   //^ property
   +glyphs <Array<String>>
   //<- operator
   //^ property
-  //      ^ type
+  //      ^ punctuation
   //       ^ type.definition
   //       ^ type.definition
-  //            ^ type
+  //            ^ punctuation
   //             ^ type.definition
   //             ^ type.definition
-  //                    ^ type
+  //                    ^ punctuation
 
   -id <UUID>
   -created_at <Date>
 
   -id <UUID>
   -created_at <Date>
@@ -21,9 +21,9 @@ Forum.Models.Post
   //^ property
   //           ^ function
   //            ^ variable.parameter
   //^ property
   //           ^ function
   //            ^ variable.parameter
-  //                 ^ type
+  //                 ^ punctuation
   //                  ^ type.definition
   //                  ^ type.definition
-  //                        ^ type
+  //                        ^ punctuation
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
   //                         ^ function
   ->authorUpdated(author <Author>)
   <~textWillUpdate(text <String>)
@@ -35,9 +35,9 @@ Forum.Models.Post
   //^ property
   //      ^ function
   //       ^ variable.parameter
   //^ property
   //      ^ function
   //       ^ variable.parameter
-  //                 ^ type
+  //                 ^ punctuation
   //                  ^ type.definition
   //                  ^ type.definition
-  //                      ^ type
+  //                      ^ punctuation
   //                       ^ function
   //                         ^ operator
   //                            ^ type.definition
   //                       ^ function
   //                         ^ operator
   //                            ^ type.definition
@@ -50,5 +50,5 @@ Forum.Models.Post
   //^ property
   //        ^ function
   //          ^ variable.parameter.optional
   //^ property
   //        ^ function
   //          ^ variable.parameter.optional
-  //                       ^ type
+  //                       ^ punctuation
   //                        ^ type.definition
   //                        ^ type.definition