mirror of https://github.com/t1meshift/js.git
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
parent
2708b1e61f
commit
44d7e2410f
|
@ -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: ']';
|
||||||
|
|
|
@ -403,7 +403,7 @@ literal
|
||||||
| BooleanLiteral
|
| BooleanLiteral
|
||||||
| StringLiteral
|
| StringLiteral
|
||||||
// | TemplateStringLiteral
|
// | TemplateStringLiteral
|
||||||
| RegularExpressionLiteral
|
// | RegularExpressionLiteral
|
||||||
| numericLiteral
|
| numericLiteral
|
||||||
| bigintLiteral
|
| bigintLiteral
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue