You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is slightly tricky to fix in the parser without adding a significant number of costly conditional checks, but it's actually quite trivial and cheap to fix with a specialized Tokenizer. tokenizeComment could be specialized to always return a zero-length token that starts and ends at the detected offset of the comment token.
In order to support this, the Parser would have to accept a specialized Tokenizer implementation. I'm going to add this for the near term, which should allow you to address this case. If there is a more elegant solution or preferred ergonomics to be had, I'm open to considering it.
Okay, now that I think about it more, this would not be a sufficient solution. We only look at the start and end tokens when slicing chunks of the string, so the ranges in any interstitial comment tokens won't matter.
Given a sheet
and a stringifier
Output is expected to be
but is instead
The text was updated successfully, but these errors were encountered: