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 ==
229
+
"|/[^*/>]"+// We only continue after a forward slash if it isn't //, /* or />
230
+
"|\\.(?=\\s)"+// We only continue after a period if it's followed by a space
231
+
"|\\bin(?:stanceof)(?=\\s+[^=/,;:>])";// We only continue after word operators (instanceof/in) when they are not followed by a terminator
232
+
constunary=
233
+
"!"+
234
+
"|a(?:sync|wait)"+
235
+
"|class"+
236
+
"|function"+
237
+
"|new"+
238
+
"|typeof"+
239
+
"|void";
240
+
constlookAheadPattern=
241
+
"\\s*(?:"+
242
+
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 >>
246
+
")\\s*"+
247
+
`|\\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