Multi line annotations #1620
mtoy-googly-moogly
started this conversation in
What's Next: Language Proposals
Replies: 2 comments
-
Here's my proposal:
Plus a special case for doc strings:
Plus a syntax for mid-line tags:
Plus a post-fix syntax which we can't implement today, so it's effectively a "bug" that it doesn't work:
So some specific instances:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Expansion of my other idea... If the tag line ends with a
If you want a single-line tag that ends with a
Mid-line tags would possibly have to count un-escaped
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are starting to think about extending the annotation syntax to allow multi line annotations.
We've pretty much agreed to do this and all that remains is to pick a syntax
Annotations, roughly, have a routing, and a content
#" This is a doc string
. The characters after the#
and before the firstspace are the routing. The empty routing, in the vscode plugin is used for annotations which control the renderer.
So a multiline annotaiton also needs a syntax for a, possibly empty, routiing.
Here are some proposals
BASH/RUBY style here-docs
The hard thing about these is I am not sure how to implement them in the ANTLR lexer.
LookML Style, but with a routing
Malloy Multi Line Style, but with a routing
I feel like I needed to mention this one, because it is an obvious choice, but I suspect that this isn't really a choice because it doesn't play well with notebooks.
Matching style. So you could use brace matching in the editor to find the beginning, end of a multi line
We were using '*'
In early discussions this was a common "maybe something like this" ... could be a number of single chars.
Beta Was this translation helpful? Give feedback.
All reactions