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
|
||||
MultiLineComment: '/*' .*? '*/' -> channel(HIDDEN);
|
||||
SingleLineComment: '//' ~[\r\n\u2028\u2029]* -> channel(HIDDEN);
|
||||
RegularExpressionLiteral: '/' RegularExpressionFirstChar RegularExpressionChar* {self.isRegexPossible()}? '/' IdentifierPart*;
|
||||
//RegularExpressionLiteral: '/' RegularExpressionFirstChar RegularExpressionChar* {self.isRegexPossible()}? '/' IdentifierPart*;
|
||||
|
||||
OpenBracket: '[';
|
||||
CloseBracket: ']';
|
||||
|
|
|
@ -403,7 +403,7 @@ literal
|
|||
| BooleanLiteral
|
||||
| StringLiteral
|
||||
// | TemplateStringLiteral
|
||||
| RegularExpressionLiteral
|
||||
// | RegularExpressionLiteral
|
||||
| numericLiteral
|
||||
| bigintLiteral
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue