diff options
| author | dgp@users.sourceforge.net <dgp> | 2013-07-18 15:05:18 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2013-07-18 15:05:18 (GMT) |
| commit | 17c0f4713b7d067682204e9555b43c531edf5e69 (patch) | |
| tree | 97de78e38c2f1e7cd5411638a63eaca8ef6f2ab0 /generic/tclCompile.c | |
| parent | dc4d18c45f92e98a2a02d8f71766bb55a75b4c73 (diff) | |
| download | tcl-17c0f4713b7d067682204e9555b43c531edf5e69.zip tcl-17c0f4713b7d067682204e9555b43c531edf5e69.tar.gz tcl-17c0f4713b7d067682204e9555b43c531edf5e69.tar.bz2 | |
[Bug 1c17fbba5d] Fix -errorinfo from syntax errors so that the error is
not obscured. Instead highlight it by making it the last character quoted.
Diffstat (limited to 'generic/tclCompile.c')
| -rw-r--r-- | generic/tclCompile.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 633966e..6a2a318 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -1790,10 +1790,7 @@ TclCompileScript( */ Tcl_LogCommandInfo(interp, script, parsePtr->commandStart, - /* Drop the command terminator (";","]") if appropriate */ - (parsePtr->term == - parsePtr->commandStart + parsePtr->commandSize - 1)? - parsePtr->commandSize - 1 : parsePtr->commandSize); + parsePtr->term + 1 - parsePtr->commandStart); TclCompileSyntaxError(interp, envPtr); break; } |
