Closed nirname closed 1 year ago
I have not found a separate bug for it, but trailing comments are not working right now
there is an issue for it #1281, it has been implemented then reverted, an not open again
I'm voting to that syntax, I've already implemented here but the parser is not done
Proposal
We need to support multi-line comments, currently they are not supported.
I suggest a syntax like this
%{ }%
, which has to be discussed.Escape character for titles and captions with special characters has yet to be discussed too. Perhaps double percent
%%
can be replaced with%
in resulting diagram.Example
A complete example is:
It should be possible to have it inserted in the middle of the string:
It can start on any line and end on any line too:
the result should be:
Note, there are 2 spaces between b and following arrow, they are representing the idea that after comment is deleted everything else stays intact.
One line comment should be treated as trailing comment, so everything that start with
%%
till the end of the line is a comment.The
%%
,%{
and%}
symbols are treated as parts of the comments too.Comments should be removed before graph parsing.
Taking that in consideration, no graphs should have these symbols in their's grammars. If someone needs to include a line containing any of those inside a caption, label or a title he must precede it with escape character. The most common techniques about that is
%
;%%
will be converted to%
\
is one of the most ubiquitous, it can escape itself:\%
will be converted to%
and\\
will be convert to\
Screenshots
No response