Hadrien Lacour writes: > Hello, tcl-mode's font lock (highlighting) chokes on this simple case: > puts {"hello} > where it considers the double quote inside the curly braces as a > "quoting" character. > I have confirmed it works with `emacs -Q`. hi Hadrien, there's some generic(?) syntactic font lock getting triggered once the doublequote character is found, that expects a closing doublequote - until then everything is locked as a string. Is this what this bug is about (it was not 100% clear to me from your initial report) ? i'm attaching a patch that works around this behavior but i don't know if it is the proper way to deal with the problem (it certainly doesn't look pretty). The idea is to insert an additional rule in tcl-syntax-propertize-function that will match the tcl-builtin-list keywords ('puts' is in there among others) plus the brackets that follow, so that if a doublequote is found in-between the brackets then there won't be any automatic string locking that would mess up the closing brackets and everything else (until another doublequote was found). Then in tcl-set-font-keywords a new rule will match the brackets and any characters inside will be locked as a string (including the single quote).