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.

Wrong syntax highlighting in coffee for inline function without parameterlist #79

Closed

Description

@m-lautenbach

Syntax Highlighting seems off here, as these expressions are equal.
I build atom directly from the repository.
Well a fork actually, created 4th of december.
Couldn't find this in issues for this filter: is:issue is:open syntax Highlighting coffee

Example:

# correct, this has class inline function
obj.method () ->
# wrong, class is entity name function coffee, but this is a call
obj.method ->

# both lines are identical and valid,
#  the second one is actually more idomatic

bildschirmfoto 2015-12-08 um 20 24 56

Activity

  1. lee-dohm commented on Dec 9, 2015

    @lee-dohm
    Contributor

    There is a third version that is highlighted correctly and I would argue is also more idiomatic than the one that isn't highlighted correctly:

    obj.method() ->
  2. m-lautenbach commented on Dec 9, 2015

    @m-lautenbach
    Author

    Isn't this something else? You version call method method without arguments and calls the result with an empty function.
    What I posted is calling the method method directly with an empty function.

  3. m-lautenbach commented on Dec 10, 2015

    @m-lautenbach
    Author

    Compare to Sublime, method calls look all the same
    bildschirmfoto 2015-12-10 um 15 01 36

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