atom/language-java

Wrong highlighting of variable definition, when = is on the next line

Opened this issue · 1 comments

Prerequisites

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:
screenshot

Steps to Reproduce

  1. Open new tab and select Java language.
  2. 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.

This only reproduces when varibale is upper-case:
image