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

Match the specification in the comments #5

Merged
merged 1 commit into from Feb 13, 2013

Conversation

judu
Copy link
Contributor

@judu judu commented Feb 11, 2013

If we check for '[)=]\s*$' we allow the following indent:

val foo = somefunc()
  val bar = 'bar'

Where we want:

val foo = somefunc()
val bar = 'bar'

So we don't want to match that closing parenthesis after (va[lr]|def).

If we check for '[)=]\s*$' we allow the following indent:

    val foo = somefunc()
      val bar = 'bar'

Where we want:

    val foo = somefunc()
    val bar = 'bar'

So we don't want to match that closing parenthesis after \(va[lr]\|def\).
rosstimson added a commit that referenced this pull request Feb 13, 2013
Match the specification in the comments
@rosstimson rosstimson merged commit 11804ce into rosstimson:master Feb 13, 2013
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.

None yet

2 participants