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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[1.1.71] - 2026-11-14
Fixed
E010 reports a FOR that starts after &, &&, ||, or | on a caret-joined line, such as echo ready & ^ followed by for %%A in (a) echo %%A. A space before for is still escaped, so that word is not a FOR command. 2>&1 stays a redirection
E001 and E040 no longer treat ( after echo ^, or after do echo, as a block parenthesis. That includes an indented ( on the next line. do (, else if, and a real IF or FOR block parenthesis are unchanged
A " escaped by the previous line's caret does not open a quote, so E009 stays quiet and the block scan still sees the rest of the command. A label ending in ^ still owns the following lines when one starts with ". r^ / em is still a remark, so a later ) is not E001
do rem on a continued FOR is a remark, so the group after it is not E001. if 1==1 (^ followed by rem note) keeps that ) inside the remark
E010 no longer reports a caret-joined FOR whose DO keyword is on a later physical line. That includes a FOR /F backquoted command, a list value that looks like rem and continues with another caret, a DO keyword split as d^ / o, and a FOR keyword split as f^ / or when the set continues with (
DO has to be the first token after the IN set: do inside the set, echo do, and do( without a space do not count. An apostrophe in O'Brien or at the start of 'Brien, a backtick, and a ) inside "a)b" or "a""b)c" do not hide that DO
The first character of each continued line is escaped, so do^ followed by a space and echo, or by (, ), ", or ^, and & rem are not syntax. A later & rem on that continued line still ends the command, as does do rem once the joined FOR is read as one command, including when DO is split as d^ / o rem
(rem inside the set is list text, not a remark. An extra ( in the set does not nest, so do rem after that ) still ends the command, including when rem is split across carets as r^ / e^ / m. A remark that mentions in (...) is still a remark
A quoted ) do rem inside the set is a value, so that caret still joins, including when the quote is on the FOR's first line. A ) inside a FOR /F backtick command still closes the set. A FOR that still has no DO after those lines are joined is still E010