Commit 7d99dc7
committed
Fix handling complex expression in for/while/until
The parse_statements method calls
skip_optional_do_after_expression method
in case of for/while/until tokens.
The skip_optional_do_after_expression method uses get_end_token method
for checking end of loop condition expressions,
but it's not correct,
because the end is detected by only
"do" token, newline and semi-colon token.
This commit fixes it.1 parent 53f146a commit 7d99dc7
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2022 | 2022 | | |
2023 | 2023 | | |
2024 | 2024 | | |
2025 | | - | |
2026 | 2025 | | |
2027 | 2026 | | |
2028 | 2027 | | |
2029 | 2028 | | |
2030 | 2029 | | |
2031 | 2030 | | |
2032 | 2031 | | |
2033 | | - | |
| 2032 | + | |
2034 | 2033 | | |
2035 | 2034 | | |
2036 | 2035 | | |
| 2036 | + | |
| 2037 | + | |
2037 | 2038 | | |
2038 | 2039 | | |
2039 | 2040 | | |
2040 | 2041 | | |
2041 | 2042 | | |
2042 | 2043 | | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | 2044 | | |
2051 | 2045 | | |
2052 | 2046 | | |
| |||
0 commit comments