atom / language-java

Java package for Atom
Other
62 stars 59 forks source link

Provide additional stop conditions for 'anonymous-classes-and-new' pattern #214

Closed Vigilans closed 5 years ago

Vigilans commented 5 years ago

Description of the Change

Alternate Designs

Non was considered.

Having to enumerate these much punctuations made me think of proposing a general and simple regex to end new expression. But soon I found out that I couldn't find a way to tell when ) or ] is met, whether there will be a {} block next to it.

Benefits

Possible Drawbacks

No obvious drawback.

Applicable Issues

Fix #213 -> dot Fix #179 -> question mark Fix #180 -> right square Fix #192 -> xor

sadikovi commented 5 years ago

Please, enable edits from maintainers on your pull request.

sadikovi commented 5 years ago

Merging to master, thanks!