Closed kant2002 closed 2 years ago
To be honest, I would vote against this. C standard allows the implementations to accept additional characters outside of basic ANSI letters, so the current implementation (before this PR) is a. Perfectly valid according to the modern standard's letter b. Usable c. I would even say "expected" of a modern programming language
Having an option to enable/disable this is not unreasonable. If we had a flag to disable non-ASCII characters, I'd accept this. I believe the default should just accept any character-set, as most implementations that I know of also have no problem with this.
What should I do to please SonarCube?
@kant2002 Don't worry about Sonar, it will be turned off soon as it causes more pain than help. Thank you so much for the contribution!
Also add same tests for Regex lexer.