From 4a1d56285559545a56cb7c79a0ea1564f01e09e5 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 14:06:17 +0200 Subject: Add optionals --- test/corpus/notation.txt | 3 ++- test/highlight/notation.api | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'test') 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 ) => Promise> #> NotFoundError,DisplayError ::get(id ) => Promise #update(text ) => Promise - #transform(transformer (T) => boolean>) + #transform([transformer] (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 ) => Promise #update(text ) => Promise - #transform(transformer (T) => boolean>) + #transform([transformer] (T) => boolean>) + //<- operator + //^ property + // ^ function + // ^ variable.parameter.optional + // ^ type + // ^ keyword -- cgit