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.
Is there any work-around to prevent this, other than avoiding it completely?