[NTG-context] Parse oddity with modes, compilation halts

Hans Hagen pragma at wxs.nl
Tue Jan 2 22:02:11 CET 2018


On 1/2/2018 7:48 PM, Rik Kabel wrote:
> 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?
% \enablemode[test]

\starttext

\startbuffer[test]
\type{%}
\stopbuffer

\startmode[test]
     \getbuffer[test]
\stopmode
\startnotmode[test]
     !
\stopnotmode

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list