The regexp I put should _not_ match this procedure:
proc test { one { two "ha }" } } {
...
}
But it does. I'm guessing, since the with quoted string it doesn't match the
expected argument pattern, it assumes the whole 'test { one { two "ha }" } }' is
the proc name part (matched by *\S.**) and has no arguments.
If it will always work, fine. But if anyone can come up with a valid Tcl proc
declaration that it does not match, I'll have to rethink my approach.
--
<http://forum.pspad.com/read.php?2,44299,44362>
PSPad freeware editor http://www.pspad.com