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

2018-01-02 Thread Hans Hagen

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

2018-01-02 Thread Rik Kabel

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___