You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"[*%<&^|?:]"+// Any of these characters can always continue an expression
228
-
"|=[=>]"+// We only continue after an equals if it is => or ==
227
+
"[!*%<&^|?:]+"+// Any of these characters can always continue an expression
228
+
"|=[=>]+"+// We only continue after an equals if it is => or ==
229
229
"|/(?:\\b|\\s)"+// We only continue after a forward slash if it isn't //, /* or />
230
230
"|\\.(?=\\s)"+// We only continue after a period if it's followed by a space
231
231
"|\\bin(?:stanceof)(?=\\s+[^=/,;:>])";// We only continue after word operators (instanceof/in) when they are not followed by a terminator
232
232
constunary=
233
-
"!"+
234
-
"|a(?:sync|wait)"+
233
+
"\\b(?:"+
234
+
"a(?:sync|wait)"+
235
235
"|class"+
236
236
"|function"+
237
237
"|new"+
238
238
"|typeof"+
239
-
"|void";
239
+
"|void"+
240
+
")\\b";
240
241
constlookAheadPattern=
241
242
"\\s*(?:"+
242
243
binary+
243
-
"|\\+"+// any number of plus signs are ok.
244
-
`|-${isConcise ? "[^-]" : ""}`+// in concise mode only consume minus signs if not --
245
-
`|>${isConcise ? "" : "[>=]"}`+// in html mode only consume closing angle brackets if it is >= or >>
244
+
"|\\++"+// any number of plus signs are ok.
245
+
`|-${isConcise ? "[^-]" : "+"}`+// in concise mode only consume minus signs if not --
246
+
`|>+${isConcise ? "" : "[>=]"}`+// in html mode only consume closing angle brackets if it is >= or >>
246
247
")\\s*"+
247
248
`|\\s+(?=[${isConcise ? "" : "["}{(])`;// if we have spaces followed by an opening bracket, we'll consume the spaces and let the expression state handle the brackets
0 commit comments