Page 2 of 2

Re: A killer : in a comment

Posted: 29 Oct 2020 10:24
by siberia-man
Does that post in Russian have to do with the current discussion? http://forum.script-coding.com/viewtopi ... 608#p80608

Briefly...

Content in comments is able to cause a syntactic (captured) error.

Code: Select all

set a=1
rem comment %a:=%

Code: Select all

set a=1
:: comment %a:=%
The "::" comments are parsed as well as the "REM" comments and even more strictly.

Code: Select all

:: comment ^
echo 1
echo 2
:: comment ^

echo 3
echo 4