atom / language-java

Java package for Atom
Other
62 stars 58 forks source link

Fixes order of storage modifiers, so @interface is scoped properly inside a class #204

Closed sadikovi closed 5 years ago

sadikovi commented 5 years ago

Requirements

Description of the Change

This PR fixes the issue when @interface defined within a class with a storage modifier would not be scoped properly. We change the order of storage-modifiers scope to make sure it gets applied before variables scope.

Alternate Designs

None were considered.

Benefits

Fixes scope and highlighting of @interface within a class.

Possible Drawbacks

I had to update one of the tests for class fields. Since we apply storage modifiers before variables, we now correctly parse int in the test example.

Applicable Issues

Closes #203