-
Notifications
You must be signed in to change notification settings - Fork 117
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
[Bug] %caseless does not work in jflex 1.6.0 ? [sf#129] #130
Comments
Commented by steve_rowe on 2014-07-30 14:29 UTC I was able to reproduce the problem with current trunk (no significant differences from 1.6.0). The problem does not reproduce for me on 1.5.1. I'll investigate. |
Commented by steve_rowe on 2014-07-30 14:53 UTC "c" [+][+] This successfully recognized "C++" for me in caseless mode. |
Updated by steve_rowe on 2014-08-06 04:31 UTC
|
Commented by steve_rowe on 2014-08-06 04:31 UTC This fix will be included in JFlex 1.6.1. |
Commented by titi4u on 2015-01-03 22:42 UTC |
Commented by lsf37 on 2015-01-08 06:19 UTC |
Reported by evgen-i on 2014-07-30 10:07 UTC
It seems like %caseless is not working the way it should in jflex 1.6.0:
%class XxxTokenizer
%unicode
%function next
%type Object
%char
%caseless
...
/** the first rule: **/
c[+][+] { return getNext(); }
This rule matches c++ (keeps it as one token), but not C++ (it gets split into C + +). Until version 1.5.1, C++ was also matched.
The text was updated successfully, but these errors were encountered: