aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queries/highlights.scm2
-rw-r--r--test/highlight/notation.api20
2 files changed, 11 insertions, 11 deletions
diff --git a/queries/highlights.scm b/queries/highlights.scm
index b7a3e9e..cf92992 100644
--- a/queries/highlights.scm
+++ b/queries/highlights.scm
@@ -4,7 +4,7 @@
(parameter_list) @function
(parameter_list (identifier (optional_value) @variable.parameter.optional))
(parameter_list (identifier) @variable.parameter)
-(identifier) @keyword
+(identifier) @type.definition
(throw_statement) @operator
(return_statement) @operator
(comment) @comment
diff --git a/test/highlight/notation.api b/test/highlight/notation.api
index c20f11a..f0a9a7a 100644
--- a/test/highlight/notation.api
+++ b/test/highlight/notation.api
@@ -1,14 +1,14 @@
Forum.Models.Post
-// <- keyword
-// ^ keyword
-// ^ keyword
+// <- type.definition
+// ^ type.definition
+// ^ type.definition
+glyphs <Array<String>>
//<- operator
//^ property
// ^ type
- // ^ keyword
+ // ^ type.definition
// ^ type
- // ^ keyword
+ // ^ type.definition
// ^ type
-id <UUID>
@@ -22,7 +22,7 @@ Forum.Models.Post
// ^ function
// ^ variable.parameter
// ^ type
- // ^ keyword
+ // ^ type.definition
// ^ type
// ^ function
->authorUpdated(author <Author>)
@@ -36,13 +36,13 @@ Forum.Models.Post
// ^ function
// ^ variable.parameter
// ^ type
- // ^ keyword
+ // ^ type.definition
// ^ type
// ^ function
// ^ operator
- // ^ keyword
+ // ^ type.definition
// ^ operator
- // ^ keyword
+ // ^ type.definition
::get(id <UUID>) => Promise<Forum.Models.Post>
#update(text <String>) => Promise<void>
#transform([transformer] <Function<T>(T) => boolean>)
@@ -51,4 +51,4 @@ Forum.Models.Post
// ^ function
// ^ variable.parameter.optional
// ^ type
- // ^ keyword
+ // ^ type.definition