From fd7cea8fc96bfe782ca4576100c39c6ffd15e150 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 16:43:30 +0200 Subject: Make the type definition brackets punctuation --- queries/highlights.scm | 2 +- test/highlight/notation.api | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) 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 -- cgit