Hans, the attached patch comes from code that Christoph Reller kindly provided me with to fix comments in TeX, MP and Lua (https://bitbucket.org/philexander/context-highlight/issues/2/highlight-for-t...). * It formats the whole comment (both character and text [not only the former]) for TeX and MP. * It does the same for one-line comments in Lua. * It fixes multiline comments in Lua. * It fixes a minor typo. The following code is compiled in the PDF attachment that shows the difference before and after the patch: \starttext \startTEX % comment for the whole line \stopTEX \startMP a % comment for the rest of the line \stopMP \startLUA --[[ multiline comment --]] ---[[ multiline but not comment ---]] \stopLUA \stoptext Could you consider merging in ConTeXt? Many thanks for your help, Pablo -- http://www.ousia.tk