diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-10-04 14:06:17 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-10-04 14:06:17 +0200 |
| commit | 4a1d56285559545a56cb7c79a0ea1564f01e09e5 (patch) | |
| tree | a600684f681d4b8c401ab1fc9d2a770ac5ea56d7 /test | |
| parent | 0931d6ef75e5dc37ba6bd7bb92c369d1df99e6d3 (diff) | |
Add optionals
Diffstat (limited to 'test')
| -rw-r--r-- | test/corpus/notation.txt | 3 | ||||
| -rw-r--r-- | test/highlight/notation.api | 12 |
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 |