Skip to content

Fix #1275 #3320

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

Merged
merged 1 commit into from
Jan 22, 2014
Merged

Fix #1275 #3320

merged 1 commit into from
Jan 22, 2014

Conversation

xixixao
Copy link
Contributor

@xixixao xixixao commented Jan 22, 2014

Fixes #1275 along with its duplicates, but to make sure I checked all these:
#1275

->
  (
    a
   )
  b
->
  (
      a
     )
  b

#1769

class Example

    @STATIC_OBJECT = {
                       'a':1,
                       'b':2,
                       'c':3,
                       'd':4
                     }

    constructor: () ->
        alert('This is working!')

#1957

myObject =
    foo:
        bar:
            baz: [
                   "hey"
               ] #indent me!
        quux: "yo"

#2221

prop: ->
  foo
    .bar 'baz', ->
      bliz
        .blaz 'zing', ->
          somethingHere()
        .fooz()
  someMoreStuffHere()

#2341

describe "test", () ->
  x = [
    1, 2
   ] # <-- A space at the beginning of this line
  describe "innerTest", () ->
    "Wrong indentation"

#2432
#2981

  alert 'hello'
alert 'world'
# now throws an error even on command line

#2981

  alert 'hello'
alert 'world'
# now throws an error even on command line

#2462

$(document)
  .on "click", (event) ->
     $(".xyz").click( -> 
            false
      )
     false

#2688

if true and true and
        true and (
            true or true
        )
    alert("")

#2734

test2 = ->
           examples = if true
                        "yes"
                      else "no"
           console.log(examples)

#3025

jQuery ->
  $('body').each -> (
    console.log("foo")
   )
  console.log('bar')

#3035

array = [
    n: [
        "a"
      ] # here the bracket is indented
    c: "hello"
]

#3117

a = ->
    foo = [
           3
          ]
    bar = baz

@jashkenas
Copy link
Owner

Bravo. On fire!

jashkenas added a commit that referenced this pull request Jan 22, 2014
@jashkenas jashkenas merged commit d2f90d2 into jashkenas:master Jan 22, 2014
@epidemian
Copy link
Contributor

Awesome patches, @xixixao! 🤘

@vendethiel
Copy link
Collaborator

🍰

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.

Sub-block terminator can cause parent block termination
4 participants