forked from jasder/antlr
Generate code with correct channel identifiers when `HIDDEN` or `DEFAULT_TOKEN_CHANNEL` is used in the `channel` lexer command
This commit is contained in:
parent
bb6f6fc026
commit
a16bd6067c
|
@ -717,7 +717,7 @@ LexerMoreCommand() ::= "More();"
|
|||
LexerPopModeCommand() ::= "PopMode();"
|
||||
|
||||
LexerTypeCommand(arg) ::= "_type = <arg>;"
|
||||
LexerChannelCommand(arg) ::= "_channel = <arg>;"
|
||||
LexerChannelCommand(arg) ::= "_channel = <channelName.(arg)>;"
|
||||
LexerModeCommand(arg) ::= "_mode = <modeName.(arg)>;"
|
||||
LexerPushModeCommand(arg) ::= "PushMode(<modeName.(arg)>);"
|
||||
|
||||
|
@ -978,6 +978,12 @@ modeName ::= [
|
|||
default : key
|
||||
]
|
||||
|
||||
channelName ::= [
|
||||
"HIDDEN" : "Hidden",
|
||||
"DEFAULT_TOKEN_CHANNEL" : "DefaultTokenChannel",
|
||||
default : key
|
||||
]
|
||||
|
||||
csIdentifier ::= [
|
||||
"abstract" : "@abstract",
|
||||
"as" : "@as",
|
||||
|
|
Loading…
Reference in New Issue