On 1/18/23 00:36, Bruce Horrocks via ntg-context wrote:
> ConTeXt  ver: 2023.01.04
> 
> The following MWE won't compile because of the \dummycommand line
> even though it is a comment. Not sure whether it's a minor bug or an
> unavoidable aspect of allowing embedded Lua.

Hi Bruce,

I think your code should read:

  \startluacode
  -- \\dummycommand
  \stopluacode
  \starttext
  Hello
  \stoptext

BTW, in pure Lua:

  a = "\a"
  b = "\\b"
  print(a..b)

outputs "\b".

Sorry, I lack the knowledge to explain this, but backslash seems to be
an special char in pure Lua too.

Just in case it might help,

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

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

Reply via email to