Consider the following example:

When this is run with --mode=vim, all is well. When the mode is not set, compilation fails. I suspect that the parser is scanning for the closing curlie of \inlineTEX but never sees it.

\starttext
\startmode[vim]
\usemodule[t-vim]
\definevimtyping[TEX][syntax=context]
\inlineTEX{%}
\stopmode

\stoptext

Is there any work-around to prevent this, other than avoiding it completely?

--
Rik