Hi Jan,

After update from 2453 to 2469, I noticed a problem with syntax recognition in
MS-DOS Batch:

After first quote character ("), all tokens until the end of line are treated
like a String, and pspad doesn´t recognize matching parenthesis.

cite:
--------------------------------------------------------------------------------
rem Some samples with problem:
    if "%VAR%"=="B" (set X=Y)

    set A=1 & set B="n" & set C="m"

    for /f "tokens= delims=," %%i in (*.exe) do (echo %%i)    
    
    if "%VAR%"=="N" (
       if exist "test.txt" (
          set VAR="Y"
       )
    )
rem This works because haven´t quotes characters (") in test 
    if exist test.txt (
       echo file exist!
    )
--------------------------------------------------------------------------------


See the image with code colorized:
http://www.dropbox.com/s/a37g2tj0mhu42ns/pspad_batch_syntax.jpg

Thanks in advance

Sandro

-- 
<http://forum.pspad.com/read.php?6,62062,62224>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem