Skip to content
Tcl Source Code Artifact [2b82a2ea15]
Login

Artifact [2b82a2ea15]

Artifact 2b82a2ea154260f2d612811be86230bb825a00e1:

Ticket change [2b82a2ea15] - New ticket [217905ffffffffff|217905ffff] <i>tcl finds close braces when they are in commented lines</i>. by nobody on 2000-10-26 00:45:43.
D 2000-10-26T00:45:43
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2594\sBug\nVersion:\s8.2\nSubmitDate:\s'1999-08-20'\nLastModified:\s'1999-08-20'\nSeverity:\sLOW\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s1367\nOS:\sWindows\s98\nMachine:\sX86\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-08-20'\n\n\nName:\n\nDevananda\svan\sder\sVeen\n\n\n\nCVS:\n\n8/18/99\n\n\n\nReproducibleScript:\n\nbutton\s.b\s-text\shello\s-command\s{\n\n\s\s\s\sputs\s"Hello"\n\n\s\s\s\s#\sthis\sline\sshould\sbe\signored\sbut\sits\snot\s}\n\n\s\s\s\sputs\s"and\sthis\swill\sonly\sprint\sonce"\n\n\s\s\s\s\n\n\s\s\s\s#\sbut\sthis\sline\sis\signored\s}\n\n\s\s\s\s\n\n\s\s\s\spack\s.b\n\n\n\nObservedBehavior:\n\nThere\sis\sno\sclose-brace\sto\smatch\sthe\sopen-brace\sof\sthe\s-command\soption.\n\n\s\s\s\sHowever,\sthe\sscript\sexecutes\sjust\sfine,\sclosing\sthe\s-command\ssection\sat\n\n\s\s\s\sthe\send\sof\sthe\ssecond\sline,\sbefore\sthe\ssecond\sputs\scommand.\sTcl\smust\n\n\s\s\s\shave\sread\sthe\s"}"\sat\sthe\send\sof\sthe\scommented\sline....\swhich\sit\sshould\n\n\s\s\s\snot\sdo!\sHowever,\sit\sdoes\snot\sgive\san\serror\sfor\swither\sof\sthe\sother\n\n\s\s\s\scommented\slines,\swhich\simplies\sthat\sTcl\sonly\sinterprets\sclose-braces\sin\n\n\s\s\s\scommented\slines\swhen\sthere\sis\sa\smatching\sopen\sbrace.\n\n\n\nDesiredBehavior:\n\nTcl\sshould\scompletely\signore\slines\sthat\shave\sbeen\scommented\sout.\n\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\s\n--\s08/20/1999\shobbs
J foundin obsolete:\s8.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title tcl\sfinds\sclose\sbraces\swhen\sthey\sare\sin\scommented\slines
J type Bug
K 217905ffffffffffffffffffffffffffffffffff
U nobody
Z 33a51ef9637f3c4e4efa013cc34e0655