-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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.
bluebu and RusticFlare
Metadata
Metadata
Assignees
Labels
No labels