Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-19
04:35 • Ticket [218307ffff] Brace/Bracket-levels are counted even in comments status... artifact: 71359cad08 user: dgp
2000-10-26
08:18 • Closed ticket [218307ffff]. artifact: 3ac38c8d48 user: welch
00:55 • New ticket [218307ffff]. artifact: 69fca4fc88 user: nobody

Brace/Bracket-levels are counted even in comments

Closed / Fixed218307ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:57
OriginalBugID: 3683 Bug
Version: 8.2.2
SubmitDate: '1999-11-24'
LastModified: '1999-11-28'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: AIX
FixedDate: '2000-10-25'
ClosedDate: '1999-11-28'


Name:

Adrian Wallaschek


CustomShell:

none


ReproducibleScript:

foreach a { 1 2 3 } {

# foreach a { a b c } {

puts $a

}

}


ObservedBehavior:

I whould not expect to be required to enter the second }. Obviously the code

behind the # gets parsed! For a commandline a limited parsing is acceptable, for the source command it is probably not, because commenting out code while debugging is a widely used working pattern. Btw. the code is executed funny because it expects to get the second } but then tries to exec it as a command. I suppose Tcl_CommandComplete needs a lesson about comments!


DesiredBehavior:

Normally the second } should not be necessary and braces/brackets in comments should not be parsed/counted.
welch Closed ticket [218307ffff]. [History diff]2000-10-26 08:18:59
dgp Ticket [218307ffff]: 3 changes [History diff]2001-04-19 04:35:42
Log in (anonymous is fine) to add a comment.