Closed stuebinm closed 9 months ago
Thanks for the report. The issue was that =
is a keyword in certain contexts (e.g. \let\foo=\bar
or \count15=125
), but only if the =
has category code 12 (other). So far, RusTeX didn't check the category code - adding the check fixes the bug. I'll run some tests to see if that breaks something else and push a fix (in the best case ETA 30 minutes)
fixed in ed4697f
thanks, works like a charm!
minimal example I could find, working on the current master f166e3ab9357f3b7e80c3cd531a7e0b147fc0fe0:
produces
if you exchange the
otherkeywords={=>}
with e.g.otherkeywords={->}
or evenotherkeywords={<=}
it works as expected (with LaTeX, all three work). Perhaps something got expanded in an unexpected place, where the=
caused confusion? Unfortunately, i'm not sure how to figure out where / what RusTeX was doing before it failed, so I can't investigate this further.(I discovered this since the
listings
package's definition for Haskell includes this)