aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/corpus/notation.txt3
-rw-r--r--test/highlight/notation.api12
2 files changed, 11 insertions, 4 deletions
diff --git a/test/corpus/notation.txt b/test/corpus/notation.txt
index 435e9dc..18be252 100644
--- a/test/corpus/notation.txt
+++ b/test/corpus/notation.txt
@@ -21,7 +21,7 @@ Forum.Models.Post
::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
::get(id <UUID>) => Promise<Forum.Models.Post>
#update(text <String>) => Promise<void>
- #transform(transformer <Function<T>(T) => boolean>)
+ #transform([transformer] <Function<T>(T) => boolean>)
---
@@ -167,6 +167,7 @@ Forum.Models.Post
(member_type)
(parameter_list
(identifier
+ (optional_value)
(type_annotation
(entry
(identifier
diff --git a/test/highlight/notation.api b/test/highlight/notation.api
index b798549..c20f11a 100644
--- a/test/highlight/notation.api
+++ b/test/highlight/notation.api
@@ -20,7 +20,7 @@ Forum.Models.Post
//<- operator
//^ property
// ^ function
- // ^ parameter
+ // ^ variable.parameter
// ^ type
// ^ keyword
// ^ type
@@ -34,7 +34,7 @@ Forum.Models.Post
//<- operator
//^ property
// ^ function
- // ^ parameter
+ // ^ variable.parameter
// ^ type
// ^ keyword
// ^ type
@@ -45,4 +45,10 @@ Forum.Models.Post
// ^ keyword
::get(id <UUID>) => Promise<Forum.Models.Post>
#update(text <String>) => Promise<void>
- #transform(transformer <Function<T>(T) => boolean>)
+ #transform([transformer] <Function<T>(T) => boolean>)
+ //<- operator
+ //^ property
+ // ^ function
+ // ^ variable.parameter.optional
+ // ^ type
+ // ^ keyword