Skip to content

Commit 098bcc0

Browse files
committed
Fix a bug in parsing empty parens.
1 parent 1a5bd3c commit 098bcc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/selfie-lib/selfie_lib/SourceFile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _parse_code(
208208
# If all parentheses are closed, return the current index
209209
if parenthesis_count == 0:
210210
end_paren = i
211-
end_arg = i - 1
211+
end_arg = i
212212
return (end_paren, end_arg)
213213
# else ...
214214
raise AssertionError(

0 commit comments

Comments
 (0)