Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Highlighting functions with multi line arguments not working #25

Closed

Description

@nshtg

Consider this:

module.exports=
class Commit extends Treeish

  initialize: (
    ref
    repo
    @tree
    @parents
    @author
    @authoredDate
    @committer
    @committedDate
    @gpgsig
    @message
  ) -> super(ref, repo)

  @parse: (raw, repo) ->
    throw new Error('No valid git repo!!!') unless repo?.isGitRepo
    throw new Error('No raw data!!!') unless (typeof(raw) is 'string')

Your page is rendering it correctly but atom is not:

yousee

Activity

  1. eranimo commented on Jan 27, 2015

    @eranimo

    +1 This is very annoying

  2. plaxdan commented on Aug 27, 2015

    @plaxdan

    This also omits the function from the ⌘+r list.

  3. elldritch commented on Sep 23, 2015

    @elldritch

    +1, this makes keeping within 80 chars very frustrating.

  4. magicznyleszek commented on Dec 22, 2015

    @magicznyleszek

    This very often happens when using AngularJS with coffeescript classes. We're following this pattern in our team:

    class FooService
        FooService.$inject = [
            'bar', 
            'fum', 
            'baz', 
            'qux', 
            'zot', 
            'asd', 
            'zxc' 
        ]
    
        constructor: (
            bar, 
            fum, 
            baz, 
            qux, 
            zot, 
            asd, 
            zxc 
        ) ->
    
            # foo
    
    app.service('foo', FooService)
  5. added a commit that references this issue on Oct 9, 2016
    d2616a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions