Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed given/when/then being de-indented in Spock tests #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thecodesmith
Copy link

Words ending in a colon were being treated as C-style labels and being de-indented. Since Spock uses this syntax for given: when: then: blocks, this change causes cinoptions to ignore labels.

@chaoren
Copy link
Contributor

chaoren commented Mar 13, 2016

Hi. I originally uploaded the UNIX version of this plugin here, and this is just a mirror of that, so it can't take pull requests.

Since I didn't actually write the original plugin, I'm gonna just trust you here that this is correct, and benefits every groovy user and not just Spock (whatever that is) users.

@chaoren
Copy link
Contributor

chaoren commented Mar 13, 2016

Alright, uploaded. Please close this after it propagates here.

@breiting
Copy link

👍

amzyang pushed a commit to amzyang/groovyindent-unix that referenced this pull request Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants