cholick / idea-spock-enhancements

A plugin for IntelliJ IDEA that improves integration with the Spock specification framework
Other
30 stars 10 forks source link

Empty blocks are confusing highlighting and error checking #14

Closed cholick closed 1 year ago

cholick commented 10 years ago

Example of incorrect highlighting

given:
def a = 1

when:

In the above code, when is not highlighted.

Example of incorrect error checking

given:

when:
def a = 1
a++

then:
a == 2

In the above code, the then is highlighted as given must be followed by... It looks like the when is being parsed as part of the given block.