From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 14:43:30 +0000 (+0200) Subject: Make the type definition brackets punctuation X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/commitdiff_plain/fd7cea8fc96bfe782ca4576100c39c6ffd15e150?ds=inline Make the type definition brackets punctuation --- diff --git a/queries/highlights.scm b/queries/highlights.scm index cf92992..8199a2b 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -1,4 +1,4 @@ -(type_annotation) @type +(type_annotation) @punctuation (member_type) @operator (member) @property (parameter_list) @function diff --git a/test/highlight/notation.api b/test/highlight/notation.api index f0a9a7a..f801360 100644 --- a/test/highlight/notation.api +++ b/test/highlight/notation.api @@ -5,11 +5,11 @@ Forum.Models.Post +glyphs > //<- operator //^ property - // ^ type + // ^ punctuation // ^ type.definition - // ^ type + // ^ punctuation // ^ type.definition - // ^ type + // ^ punctuation -id -created_at @@ -21,9 +21,9 @@ Forum.Models.Post //^ property // ^ function // ^ variable.parameter - // ^ type + // ^ punctuation // ^ type.definition - // ^ type + // ^ punctuation // ^ function ->authorUpdated(author ) <~textWillUpdate(text ) @@ -35,9 +35,9 @@ Forum.Models.Post //^ property // ^ function // ^ variable.parameter - // ^ type + // ^ punctuation // ^ type.definition - // ^ type + // ^ punctuation // ^ function // ^ operator // ^ type.definition @@ -50,5 +50,5 @@ Forum.Models.Post //^ property // ^ function // ^ variable.parameter.optional - // ^ type + // ^ punctuation // ^ type.definition