-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for comments in lrlex files #403
Comments
Generally lrlex has focused on following the posix lex specification (but hasn't implemented comments yet if I recall), Here are some examples, the latter showing some of the cases where initial whitespace is not required: |
Agreed, it would be good if lrlex supported comments, and I'd happily take a PR to that effect! If flex supports them, I might also be inclined to support |
So, I had noticed the text in #325 the following text in the posix lex spec:
Which is relevant to this bug, it would be easy enough to currently just ignore any line which starts with a space. I believe |
I started using lrlex and didn't find a formal definition of its file format but it seems there is no way to write comments in .l files. I think that would be a useful feature to support.
The text was updated successfully, but these errors were encountered: