jgm / skylighting

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

Handle starting numbers (fix regression in #72) #73

Closed dbaynard closed 5 years ago

dbaynard commented 5 years ago

Two commits. One implements the change from https://github.com/jgm/pandoc/issues/4386#issuecomment-496502656 that I forgot to implement (thanks @mb21). The other adds a new option, -N, to skylighting, which controls this — I found it helpful to test, but it might also be useful for standalone use of skylighting. By all means, bikeshed the names, etc.

I've tested with skylighting, only (not with pandoc). I'd happily do more here, but given the test suite only tests the parser, I'm not sure what is best.

jgm commented 5 years ago

Great. I may change the option name in subsequent commit.