Comment out RegularExpressionLiteral

I'm not going to implement RegExp in the nearest future, so I don't think it is needed there uncommented.
master
Yury Kurlykov 2020-04-30 00:58:22 +10:00
parent 2708b1e61f
commit 44d7e2410f
Signed by: t1meshift
GPG Key ID: B133F3167ABF94D8
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ options { superClass=JavaScriptBaseLexer; }
HashBangLine: { self.isStartOfFile()}? '#!' ~[\r\n\u2028\u2029]*; // only allowed at start HashBangLine: { self.isStartOfFile()}? '#!' ~[\r\n\u2028\u2029]*; // only allowed at start
MultiLineComment: '/*' .*? '*/' -> channel(HIDDEN); MultiLineComment: '/*' .*? '*/' -> channel(HIDDEN);
SingleLineComment: '//' ~[\r\n\u2028\u2029]* -> channel(HIDDEN); SingleLineComment: '//' ~[\r\n\u2028\u2029]* -> channel(HIDDEN);
RegularExpressionLiteral: '/' RegularExpressionFirstChar RegularExpressionChar* {self.isRegexPossible()}? '/' IdentifierPart*; //RegularExpressionLiteral: '/' RegularExpressionFirstChar RegularExpressionChar* {self.isRegexPossible()}? '/' IdentifierPart*;
OpenBracket: '['; OpenBracket: '[';
CloseBracket: ']'; CloseBracket: ']';

View File

@ -403,7 +403,7 @@ literal
| BooleanLiteral | BooleanLiteral
| StringLiteral | StringLiteral
// | TemplateStringLiteral // | TemplateStringLiteral
| RegularExpressionLiteral // | RegularExpressionLiteral
| numericLiteral | numericLiteral
| bigintLiteral | bigintLiteral
; ;