Skip to content

Commit e28a57c

Browse files
committed
display additional comments(enum value) in generated sources
1 parent 5cdcf00 commit e28a57c

File tree

1 file changed

+1
-1
lines changed
  • tool/src/main/resources/org/antlr/codegen/templates/Cpp

1 file changed

+1
-1
lines changed

tool/src/main/resources/org/antlr/codegen/templates/Cpp/Cpp.stg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ ANTLR_UINT8* <name>TokenNames[<length(tokenNames)>+4]
762762
(ANTLR_UINT8*) "\<EOR>",
763763
(ANTLR_UINT8*) "\<DOWN>",
764764
(ANTLR_UINT8*) "\<UP>",
765-
<tokenNames:{it |(ANTLR_UINT8*) <it>}; separator=",\n">
765+
<rest(tokens):{it |(ANTLR_UINT8*) "<it.name>", //<it.type>}; separator="\n">
766766
};
767767
<endif>
768768

0 commit comments

Comments
 (0)