Removed trailing comma in channelNames for Python 2 & 3, JavaScript.

This commit is contained in:
Ivan Kochurkin 2017-01-08 21:54:14 +03:00
parent 7b8ba3550b
commit 23f59ad99d
3 changed files with 3 additions and 3 deletions

View File

@ -829,7 +829,7 @@ function <lexer.name>(input) {
<rest(lexer.modes):{m| <lexer.name>.<m> = <i>;}; separator="\n">
<endif>
<lexer.name>.prototype.channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN", <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor> ];
<lexer.name>.prototype.channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN"<if (lexer.channels)>, <lexer.channels:{c| "<c>"}; separator=", ", wrap, anchor><endif> ];
<lexer.name>.prototype.modeNames = [ <lexer.modes:{m| "<m>"}; separator=", ", wrap, anchor> ];

View File

@ -766,7 +766,7 @@ class <lexer.name>(<if(superClass)><superClass><else>Lexer<endif>):
<endif>
<lexer.tokens:{k | <k> = <lexer.tokens.(k)>}; separator="\n", wrap, anchor>
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN", <lexer.channels:{c| u"<c>"}; separator=", ", wrap, anchor> ]
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN"<if (lexer.channels)>, <lexer.channels:{c| u"<c>"}; separator=", ", wrap, anchor><endif> ]
modeNames = [ <lexer.modes:{m| u"<m>"}; separator=", ", wrap, anchor> ]

View File

@ -771,7 +771,7 @@ class <lexer.name>(<if(superClass)><superClass><else>Lexer<endif>):
<endif>
<lexer.tokens:{k | <k> = <lexer.tokens.(k)>}; separator="\n", wrap, anchor>
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN", <lexer.channels:{c| u"<c>"}; separator=", ", wrap, anchor> ]
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN"<if (lexer.channels)>, <lexer.channels:{c| u"<c>"}; separator=", ", wrap, anchor><endif> ]
modeNames = [ <lexer.modes:{m| "<m>"}; separator=", ", wrap, anchor> ]