Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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;
        }
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "69. Other"
  14. title changed to:
    extra characters after close quote or brace missing context
    
  15. type changed to: "Bug"