s-ludwig / sdlite

Light and fast SDLang parser/generator
MIT License
15 stars 5 forks source link

Small bug in lexer.d #6

Closed alextretyak closed 3 years ago

alextretyak commented 3 years ago

https://github.com/s-ludwig/sdlite/blob/6c82628acb872de74906acd98d0b539e142ddd83/source/sdlite/lexer.d#L753

It looks like a bug. If ch < 'A' then it can not be > 'Z', and vice versa. So, this condition is always false. Maybe there should be ch < 'A' || ch > 'Z' instead?