diff options
| -rw-r--r-- | queries/highlights.scm | 2 | ||||
| -rw-r--r-- | 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 <Array<String>> //<- operator - //^ property + //^ method // ^ punctuation // ^ type.definition // ^ punctuation @@ -18,7 +18,7 @@ Forum.Models.Post -author <Author> ~>textUpdated(text <String>) //<- operator - //^ property + //^ method // ^ function // ^ parameter // ^ punctuation @@ -32,7 +32,7 @@ Forum.Models.Post <+textWillUpdate(text <String>) ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError //<- operator - //^ property + //^ method // ^ function // ^ parameter // ^ punctuation @@ -47,7 +47,7 @@ Forum.Models.Post #update(text <String>) => Promise<void> #transform([transformer] <Function<T>(T) => boolean>) //<- operator - //^ property + //^ method // ^ function // ^ parameter.optional // ^ punctuation |