<i>Switch statements case statements fail with open parentheis in comments</i>.
by
.
D 2025-04-12T22:42:59.496
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment Example\scode:\r\n\r\nproc\syay\s{lang}\s{\r\n\s\s\s\sswitch\s$lang\s{\s\r\n\s\s\s\s\s\s\s\stcl\s{\s\r\n\t\s\s\s\sputs\s"Yay!\sTCL"\r\n\s\s\s\s\s\s\s\s\s\s\s\s#\shaving\sa\sa\s{\swill\sbreak\sthis\scase\snow\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s}\r\n}\s;#\send\sproc\r\n\r\nyay\s"tcl"\r\n\r\nNot\ssure\sfeature,\sor\sbug,\sso\sfeel\sfree\sto\sclose,\sbut\ssurely\sa\scomment\sis\sa\scomment\sand\sshouldn't\sbe\sexecuted?\r\n\r\nI\srecall\scorrectly\sit's\sdown\sto\sthat\sswitch\scases\sare\sexecuted\sas\slists.\sBut\ssomething\sfeels\seery\sthat\syou\scan't\suse\sa\s{\sin\sa\scomment.
J foundin 9.x
J is_private 0
J login mookie
J priority 5\sMedium
J private_contact eb7513005aa11dbe2a07d8bff76f8af3c25f379b
J resolution None
J severity Minor
J status Open
J submitter mookie
J subsystem 69.\sOther
J title Switch\sstatements\scase\sstatements\sfail\swith\sopen\sparentheis\sin\scomments
J type Bug
K 3a24cc9df1619a130120e8cef8560aef0561c1f0
U mookie
Z a42fd2938c10eb87170e84cbbd42ffa1