You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
myGraph
%% one line comment
Bob -> Hello -> Alice %% trailing comment
%{
multi-line
comment
}%
Pete -> Hello %{ comment in the middle }% -> Alice
Steve -> Hello %{
multi-line
comment
in the middle
}% -> Alice
It should be possible to have it inserted in the middle of the string:
a -> b %{ comment }% -> c
It can start on any line and end on any line too:
a-> b %{
long
comment
}% -> c
the result should be:
a -> b -> c
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
duplicating the character, so escape symbol could also be %; %% will be converted to %
using another escape character, so \ is one of the most ubiquitous, it can escape itself: \% will be converted to % and \\ will be convert to \
Screenshots
No response
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: