1
0
Fork 0

[cleanup] Misc

Closes #7030, closes #6967
This commit is contained in:
pukkandan 2023-05-20 03:06:23 +05:30
commit 6f2287cb18
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
6 changed files with 245 additions and 404 deletions

View file

@ -248,7 +248,7 @@ class JSInterpreter:
return
counters = {k: 0 for k in _MATCHING_PARENS.values()}
start, splits, pos, delim_len = 0, 0, 0, len(delim) - 1
in_quote, escaping, after_op, in_regex_char_group, in_unary_op = None, False, True, False, False
in_quote, escaping, after_op, in_regex_char_group = None, False, True, False
for idx, char in enumerate(expr):
if not in_quote and char in _MATCHING_PARENS:
counters[_MATCHING_PARENS[char]] += 1