jgm / skylighting

A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions
189 stars 61 forks source link

ConTeXt: fix escaping of special chars. #163

Closed tarleb closed 1 year ago

tarleb commented 1 year ago

The character commands gobbled spaces after the special chars. In contrast to LaTeX macros, ConTeXt commands appear to consume all spaces after the command. Using an empty span {} as delimiter command works better.

jgm commented 1 year ago

LaTeX behaves the same way, and that's why we have these {} in the latex formatter.

tarleb commented 1 year ago

Ow, I must have done that wrong for ages.

jgm commented 1 year ago

It took me years to realize this too!