.
D 2000-10-26T00:52:30
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1367\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-08-07'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sWindows\s95\nMachine:\sX86\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-08-07'\n\n\nName:\n\njohn\sf.\sdavis\n\n\nReproducibleScript:\n\nI\shad\ssome\scode\swhich\swas\scommented\sout,\sbut\sthe\sinterpeter\sgave\sme\san\serror\s\n\non\scode\swhich\swas\scommented\sout.\n\n\n#\s\s\s\s\s\sfor\s{foo}\s{foo)\s{foo}\s{\n\n\nObservedBehavior:\n\nThe\sinterpeter\ssaid\sthere\swas\sa\smissing\sbrace.\s\sDidn't\stell\sme\swhere\sin\sthe\scode\sit\swas,\sso\si\sstarted\scommenting\sout\slines\sa\sline\sat\sa\stime.\s\sI\sstill\sgot\serrors\n\neven\sthough\sthe\scode\swith\sthe\serror\swas\scommented\sout.\s\s\sThe\serror\swas\sthat\sthe\s\n\nsecond\s{}\sgroup\sin\sthe\sfor\sloop\shad\sa\s")"\sinstead\sof\sa\s"}".\n\n\nDesiredBehavior:\n\nI\sexpected\sthe\smissing-brace\serror\sto\stell\sme\sa\sline\snumber\sfirst\sof\sall.\s\sSecond,\sI\sexpected\sthat\sthe\scode\swould\sbe\signored\swhen\scommented\sout.\n\n\n\n\nThis\sis\sthe\sexpected\sbehavior.\s\sBrace\sbalancing\shas\sprecedent\sover\ncomment\sdetection,\swhich\scan\slead\sto\sprogramming\serrors\slike\sthe\nabove.\s\sCompare\swith\sthis\sperfectly\slegal\sstatement:\n\s\s\s\sif\s{1}\s{\sputs\shello;\s#\sI\sjust\sputs'ed\sit\s}\n\nThe\sparser\swill\scheck\sthat\sthe\sif\shas\stwo\sargs\sfirst,\sthen\swhen\ntrue\sit\swill\seval\sthe\sbody\sarg\sand\ssee\sthe\stwo\scommands,\sthe\nsecond\sbeing\sa\scomment.\s\n--\s08/07/1999\shobbs
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title tcl\sparses\scommented\scode.
J type Bug
K 218043ffffffffffffffffffffffffffffffffff
U nobody
Z d5e61f882e2f2c1a25b9a89f0be7c0cf