We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Java, using "to" as a variable name will highlight it as if it was a keyword.
"to" should not highlight blue in the demo editor. Here are a list of Java keywords:
https://en.wikipedia.org/wiki/List_of_Java_keywords
https://mkslanc.github.io/ace-playground/?value=Ly9zYW1wbGVzL2hlbGxvIHdvcmxkCgovLyBFYXNpZXN0IHdheSB0byBydW4gQUNFIGVkaXRvciBpbiBjb250YWluZXIgd2l0aCBpZD0iZXhhbXBsZSIKYWNlLmVkaXQoImV4YW1wbGUiLCB7CiAgICB0aGVtZTogImFjZS90aGVtZS90ZXh0bWF0ZSIsCiAgICBtb2RlOiAiYWNlL21vZGUvamF2YSIsCiAgICB2YWx1ZTogImNvbnNvbGUubG9nKCdIZWxsbyB3b3JsZCcpOyIKfSk7XDBcMDxzY3JpcHQgc3JjPSJodHRwczovL3d3dy51bnBrZy5jb20vYWNlLWJ1aWxkc0BsYXRlc3Qvc3JjLW5vY29uZmxpY3QvYWNlLmpzIj48L3NjcmlwdD4KPGRpdiBpZD0nZXhhbXBsZScgc3R5bGU9ImhlaWdodDogMTAwJSI%2BPC9kaXY%2B#hello-world
"ace/mode/java"
to
var to = "to"
I rolled back to 1.30.0 and cannot reproduce it, but I can on 1.31.0. I think this is the change that introduces this:
https://github.com/ajaxorg/ace/pull/5343/files#diff-138cd3514dd27442d8b8aa99dad9b2f5d749ad669e5a0fff48474deaf3689e77R24
No response
1.31.0 till latest
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
In Java, using "to" as a variable name will highlight it as if it was a keyword.
Expected Behavior
"to" should not highlight blue in the demo editor. Here are a list of Java keywords:
https://en.wikipedia.org/wiki/List_of_Java_keywords
Current Behavior
https://mkslanc.github.io/ace-playground/?value=Ly9zYW1wbGVzL2hlbGxvIHdvcmxkCgovLyBFYXNpZXN0IHdheSB0byBydW4gQUNFIGVkaXRvciBpbiBjb250YWluZXIgd2l0aCBpZD0iZXhhbXBsZSIKYWNlLmVkaXQoImV4YW1wbGUiLCB7CiAgICB0aGVtZTogImFjZS90aGVtZS90ZXh0bWF0ZSIsCiAgICBtb2RlOiAiYWNlL21vZGUvamF2YSIsCiAgICB2YWx1ZTogImNvbnNvbGUubG9nKCdIZWxsbyB3b3JsZCcpOyIKfSk7XDBcMDxzY3JpcHQgc3JjPSJodHRwczovL3d3dy51bnBrZy5jb20vYWNlLWJ1aWxkc0BsYXRlc3Qvc3JjLW5vY29uZmxpY3QvYWNlLmpzIj48L3NjcmlwdD4KPGRpdiBpZD0nZXhhbXBsZScgc3R5bGU9ImhlaWdodDogMTAwJSI%2BPC9kaXY%2B#hello-world
Reproduction Steps
"ace/mode/java"
to
e.gvar to = "to"
Possible Solution
I rolled back to 1.30.0 and cannot reproduce it, but I can on 1.31.0. I think this is the change that introduces this:
https://github.com/ajaxorg/ace/pull/5343/files#diff-138cd3514dd27442d8b8aa99dad9b2f5d749ad669e5a0fff48474deaf3689e77R24
Additional Information/Context
No response
Ace Version / Browser / OS / Keyboard layout
1.31.0 till latest
The text was updated successfully, but these errors were encountered: