Wrong highlighting of variable definition, when = is on the next line
sadikovi opened this issue · comments
Ivan commented
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When writing code like this:
class A {
static String CONSTANT_1 = "abc";
static String CONSTANT_2 =
"abc";
// Wrong highlighting
static String CONSTANT_3
= "abc";
}
The last CONSTANT_3 has wrong highlighting, see image below:
Steps to Reproduce
- Open new tab and select Java language.
- Paste code into the editor.
Expected behavior: [What you expect to happen]
CONSTANT_3 is highlighted the same way as CONSTANT_1 and CONSTANT_2.
Actual behavior: [What actually happens]
It is not highlighted the same way.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
Atom : 1.32.1
Electron: 2.0.9
Chrome : 61.0.3163.100
Node : 8.9.3
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.
Vigilans commented