Artifacts Associated With Ticket 218162ffffffffff
Ticket change [688c378182] (rid 103088) by nobody on 2000-10-26 00:53:57:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2206 Bug Version: 8.0p2 SubmitDate: '1999-06-15' LastModified: '1999-08-05' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Solaris Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-08-05' Name: Dimitry Patent Extensions: Tix, BLT ReproducibleScript: proc SomeProc { some parameters } { # if { $something } { if { $something_else } { Do_something } } ObservedBehavior: last bracket matches with comment line instead of proc line. Tcl interp invoked from within another tool my group is working on. Stack trace : ERROR: bgerror: missing close-brace while compiling "traceproc Edit {tree selected {ext ""}} { ..." (file "/user/dpatent/cvs/borg/tcl/viewedit.tcl" line 159) invoked from within "source $file" (procedure "ReloadSource" line 6) invoked from within "ReloadSource" (procedure "Reload" line 4) invoked from within "Reload" invoked from within ".main.mainmenu.special.m invoke active" ("uplevel" body line 1) invoked from within "uplevel #0 [list $w invoke active]" (procedure "tkMenuInvoke" line 29) invoked from within "tkMenuInvoke .main.mainmenu.special.m 1" (command bound to event) DesiredBehavior: last brace should match top line. This is the expected comment behavior. Brace matching is done before comment recognition, which can cause confusion like this. An example showing correctness: if {1} {set a 5; # set the var} The bracing must be considered first (in the context of the 'if'). Only when the if is evaled do we recognize the 2nd command as a comment. -- 08/05/1999 hobbs - foundin initialized to: "obsolete: 8.0p2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "errors with comments"
- type initialized to: "Bug"
Ticket change [820dcdaf27] (rid 117157) by welch on 2000-10-26 08:15:57:
- closedate changed to: "2000-10-26T01:15:57"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [3eb9cc0f6f] (rid 121321) by dgp on 2001-04-16 20:46:45:
- closedate changed to: "2001-04-16T13:46:45"
- closer changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"