add annotation support for simple endpoint
pkg/parse/tests/docstrings.sysl has annotation on its simple endpoint. This adds an annotation
support as before the annotation was parsed as a group statement.
endpoint -> (rest_endpoint | simple_endpoint | collector | event);
-simple_endpoint -> SHORTCUT | (endpoint_name=(APPNAME) QSTRING? params? attribs? ":"
- (SHORTCUT | %!Indented(stmt)));
+simple_endpoint -> (
+ endpoint_name=(APPNAME) QSTRING? params? attribs? ":"
+ (
+ SHORTCUT
+ | %!Indented(annotation | stmt)
+ )
+ );
rest_endpoint -> http_path attribs? ":" %!Indented(method_def | rest_endpoint);
