From 2694356b41ecccd9bd50836ea1686598c94ff56c Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 16:57:57 +0200 Subject: Test using method --- queries/highlights.scm | 2 +- test/highlight/notation.api | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- cgit