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
A single line comment on the same line as } is accepted by the upstream parser, but not by the plugin. The parser error caused by such comment also disable syntax highlighting for the whole file.
The following results in "CRLF expected, got '#'"
workspace {
model {
a = softwareSystem a
}
} # comment
The following results in "CRLF expected, got 'model'"
workspace {
model {
a = softwareSystem a
} # comment
}
On the other hand, single line comments on the same line as { (e.g., model { # comment) are sometimes accepted and sometimes rejected by the upstream parser. It seems they are allowed after model, views, but they are not allowed after anything that takes arguments. Note, for comments after { the plugin does not produce misleading errors like (2) and they do not disable the syntax highlighting. Also, such comments are must less useful, so it does not seem worth supporting them in the few cases where upstream parser allows them.
The text was updated successfully, but these errors were encountered:
A single line comment on the same line as
}
is accepted by the upstream parser, but not by the plugin. The parser error caused by such comment also disable syntax highlighting for the whole file.On the other hand, single line comments on the same line as
{
(e.g.,model { # comment
) are sometimes accepted and sometimes rejected by the upstream parser. It seems they are allowed after model, views, but they are not allowed after anything that takes arguments. Note, for comments after{
the plugin does not produce misleading errors like (2) and they do not disable the syntax highlighting. Also, such comments are must less useful, so it does not seem worth supporting them in the few cases where upstream parser allows them.The text was updated successfully, but these errors were encountered: