C#: mode constants written to file as tokens and channels.

This commit is contained in:
Ivan Kochurkin 2017-01-08 18:28:19 +03:00
parent 00d0ba129b
commit 1fe1216e26
1 changed files with 4 additions and 2 deletions

View File

@ -982,8 +982,10 @@ public partial class <csIdentifier.(lexer.name)> : <superClass; null="Lexer"> {
public const int
<lexer.channels:{k | <csIdentifier.(k)>=<lexer.channels.(k)>}; separator=", ", wrap, anchor>;
<endif>
<rest(lexer.modes):{m| public const int <modeName.(m)> = <i>;}; separator="\n">
<if(rest(lexer.modes))>
public const int
<rest(lexer.modes):{m | <m>=<i>}; separator=", ", wrap, anchor>;
<endif>
public static string[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN", <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor>
};