Overview
| Artifact ID: | 30d80ae9c5c8ae64193bd15105b8cbb0535718ec788f0dfd45dea2ee9ccb5fbe |
|---|---|
| Ticket: | 7d207629522ecbf2d63a577d6dc18968b3dd6900
extra characters after close quote or brace missing context |
| User & Date: | anonymous on 2021-04-16 17:50:34 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The pair of error messages for extra characters after a close quote or brace is missing context information. The code is in tclParse.c at the if/else which begins: if (src[-1] == '"') { if (interp != NULL) { Tcl_SetObjResult(interp, Tcl_NewStringObj( "EXtra characters after close-quote", -1)); } parsePtr->errorType = TCL_PARSE_QUOTE_EXTRA; } else { .... I propose the following change: if (src[-1] == '"') { if (interp != NULL) { Tcl_Obj *emessage = Tcl_NewStringObj( "extra characters after close-quote at \"", -1); Tcl_AppendLimitedToObj(emessage, src, -1, 30, NULL); Tcl_SetObjResult(interp, emessage); } parsePtr->errorType = TCL_PARSE_QUOTE_EXTRA; } else { if (interp != NULL) { Tcl_Obj *emessage = Tcl_NewStringObj( "extra characters after close-brace at }", -1); Tcl_AppendLimitedToObj(emessage, src, -1, 30, NULL); Tcl_SetObjResult(interp, emessage); } parsePtr->errorType = TCL_PARSE_BRACE_EXTRA; } - foundin changed to: "8.6"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "69. Other"
- title changed to:
extra characters after close quote or brace missing context
- type changed to: "Bug"