Skip to content

Lexer: Leading dot doesn’t close function passed as argument and not wrapped in parentheses #3446

@bwiklund

Description

@bwiklund

On 1.7.1, this breaks:

angular.module 'foo'
.controller 'EmailLoginCtrl', ->
.controller 'EmailSignupCtrl', ->

While this is fine:

angular.module 'foo'
.controller 'EmailLoginCtrl', (->)
.controller 'EmailSignupCtrl', (->)

And so is this:

angular.module 'foo'
.controller 'EmailLoginCtrl', -> return
.controller 'EmailSignupCtrl', -> return

Is this the way it's supposed to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions