Overview
| Artifact ID: | 688c378182b1102d92012088583b304e4bda8d00 |
|---|---|
| Ticket: | 218162ffffffffffffffffffffffffffffffffff
errors with comments |
| User & Date: | nobody on 2000-10-26 00:53:57 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.0p2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "errors with comments"
- type changed to: "Bug"