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
In the last rule we want to exclude the trailing whitespace. We can't just drop the last byte as the allowed whitespace characters can be 1, 2, or 3 bytes long. If we could bind the whitespace character we could do match_[..match.len() - whitespace_clar.len_utf8()].
Currently getting the matched character in a wildcard is quite verbose (and probably also inefficient):
One easy fix would be to add a
char
method tolexer
that returns the last matched character.Alternatively with #9 we could allow
<char:_> => ...
syntax.The text was updated successfully, but these errors were encountered: