From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 14:57:57 +0000 (+0200) Subject: Test using method X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/commitdiff_plain/2694356b41ecccd9bd50836ea1686598c94ff56c?ds=inline Test using method --- diff --git a/queries/highlights.scm b/queries/highlights.scm index 66282a6..7d4e2ad 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -1,6 +1,6 @@ (type_annotation) @punctuation (member_type) @operator -(member) @property +(member) @method (parameter_list) @function (parameter_list (identifier (optional_value) @parameter.optional)) (parameter_list (identifier) @parameter) diff --git a/test/highlight/notation.api b/test/highlight/notation.api index aa7bc71..f161647 100644 --- a/test/highlight/notation.api +++ b/test/highlight/notation.api @@ -4,7 +4,7 @@ Forum.Models.Post // ^ type.definition +glyphs > //<- operator - //^ property + //^ method // ^ punctuation // ^ type.definition // ^ punctuation @@ -18,7 +18,7 @@ Forum.Models.Post -author ~>textUpdated(text ) //<- operator - //^ property + //^ method // ^ function // ^ parameter // ^ punctuation @@ -32,7 +32,7 @@ Forum.Models.Post <+textWillUpdate(text ) ::getAll(parent_id ) => Promise> #> NotFoundError,DisplayError //<- operator - //^ property + //^ method // ^ function // ^ parameter // ^ punctuation @@ -47,7 +47,7 @@ Forum.Models.Post #update(text ) => Promise #transform([transformer] (T) => boolean>) //<- operator - //^ property + //^ method // ^ function // ^ parameter.optional // ^ punctuation