Removed trailing comma in channel names.

This commit is contained in:
Ivan Kochurkin 2017-01-08 20:46:11 +03:00
parent 9998db82ce
commit ccb325db42
5 changed files with 5 additions and 13 deletions

View File

@ -987,7 +987,7 @@ public partial class <csIdentifier.(lexer.name)> : <superClass; null="Lexer"> {
<rest(lexer.modes):{m | <m>=<i>}; separator=", ", wrap, anchor>; <rest(lexer.modes):{m | <m>=<i>}; separator=", ", wrap, anchor>;
<endif> <endif>
public static string[] channelNames = { public static string[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN", <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor> "DEFAULT_TOKEN_CHANNEL", "HIDDEN"<if (lexer.channels)>, <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor><endif>
}; };
public static string[] modeNames = { public static string[] modeNames = {

View File

@ -196,7 +196,7 @@ std::vector\<std::string> <lexer.name>::_ruleNames = {
}; };
std::vector\<std::string> <lexer.name>::_channelNames = { std::vector\<std::string> <lexer.name>::_channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN", <lexer.channels: {c | "<c>"}; separator = ", ", wrap, anchor> "DEFAULT_TOKEN_CHANNEL", "HIDDEN"<if (lexer.channels)>, <lexer.channels: {c | "<c>"}; separator = ", ", wrap, anchor><endif>
}; };
std::vector\<std::string> <lexer.name>::_modeNames = { std::vector\<std::string> <lexer.name>::_modeNames = {

View File

@ -1379,21 +1379,13 @@ var serializedLexerAtn []uint16
var lexerDeserializer = antlr.NewATNDeserializer(nil) var lexerDeserializer = antlr.NewATNDeserializer(nil)
var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn) var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)
<if(lexer.channels)>
var lexerChannelNames = []string{ var lexerChannelNames = []string{
"DEFAULT_TOKEN_CHANNEL", "HIDDEN", <lexer.channels:{c | "<c>"}; separator=", ", wrap>, "DEFAULT_TOKEN_CHANNEL", "HIDDEN"<if (lexer.channels)>, <lexer.channels:{c | "<c>"}; separator=", ", wrap><endif>,
} }
<else>
var lexerChannelNames []string
<endif>
<if(lexer.modes)>
var lexerModeNames = []string{ var lexerModeNames = []string{
<lexer.modes:{m | "<m>"}; separator=", ", wrap>, <lexer.modes:{m | "<m>"}; separator=", ", wrap>,
} }
<else>
var lexerModeNames []string
<endif>
<if(lexer.literalNames)> <if(lexer.literalNames)>
var lexerLiteralNames = []string{ var lexerLiteralNames = []string{

View File

@ -905,7 +905,7 @@ public class <lexer.name> extends <superClass; null="Lexer"> {
<rest(lexer.modes):{m | <m>=<i>}; separator=", ", wrap, anchor>; <rest(lexer.modes):{m | <m>=<i>}; separator=", ", wrap, anchor>;
<endif> <endif>
public static String[] channelNames = { public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN", <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor> "DEFAULT_TOKEN_CHANNEL", "HIDDEN"<if (lexer.channels)>, <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor><endif>
}; };
public static String[] modeNames = { public static String[] modeNames = {

View File

@ -968,7 +968,7 @@ open class <lexer.name>: <superClass; null="Lexer"> {
public static let <rest(lexer.modes):{m| <m>=<i>}; separator=", ", wrap, anchor> public static let <rest(lexer.modes):{m| <m>=<i>}; separator=", ", wrap, anchor>
<endif> <endif>
public static let channelNames: [String] = [ public static let channelNames: [String] = [
"DEFAULT_TOKEN_CHANNEL", "HIDDEN", <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor> "DEFAULT_TOKEN_CHANNEL", "HIDDEN"<if (lexer.channels)>, <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor><endif>
] ]
public static let modeNames: [String] = [ public static let modeNames: [String] = [