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
Unfortunately javadoc style multiline comments preceding a rule cause a strange formatting effect. The following rule is moved to just after the comment ending. Also, multiple single line comments are indented and extra lines are added.
grammar Funny;
/**
This is a funny grammar that confuses Antlr4Formatter
*/
test : 'a' 'b' 'c' test2 EOF;
//
// test number 2
//
test2 : '1' '2' '3';
turns into
grammar Funny;
/**
This is a funny grammar that confuses Antlr4Formatter
*/ test
: 'a' 'b' 'c' test2 EOF
;
//
// test number 2
//
test2
: '1' '2' '3'
;
This seems very odd to me. I'm not sure if this is intentional or not.
The text was updated successfully, but these errors were encountered:
Unfortunately javadoc style multiline comments preceding a rule cause a strange formatting effect. The following rule is moved to just after the comment ending. Also, multiple single line comments are indented and extra lines are added.
turns into
This seems very odd to me. I'm not sure if this is intentional or not.
The text was updated successfully, but these errors were encountered: