osa1 / lexgen

A fully-featured lexer generator, implemented as a proc macro
MIT License
63 stars 7 forks source link

Generated code triggers "manual_range_contains" lint #50

Closed osa1 closed 2 years ago

osa1 commented 2 years ago

We generate char >= x && char <= y to check if the character is in a range.

That triggers clippy's manual_range_contains.

We should either generate contains or suppress the lint in the generated next methods.