atom / language-java

Java package for Atom
Other
62 stars 59 forks source link

Fix underscore in class names #200

Closed sadikovi closed 5 years ago

sadikovi commented 5 years ago

Requirements

Description of the Change

I updated patterns that relate to storage types to include underscore wherever it was missing; also updated variable pattern to capture storage types with underscore.

Added unit test.

Alternate Designs

No alternative designs were considered.

Benefits

Fixes issue of having package and class names that start with underscore.

Possible Drawbacks

I had to comment out line 832 in java-spec.coffee, "_1" value is now highlighted as storage.type.java. I will open issue to fix this later. Should not affect anything else, as far as I am concerned.

Applicable Issues

Fixes #198