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

Improper highlighting of multi-line function definitions #152

Open
kumarharsh opened this issue Feb 10, 2014 · 2 comments
Open

Improper highlighting of multi-line function definitions #152

kumarharsh opened this issue Feb 10, 2014 · 2 comments

Comments

@kumarharsh
Copy link

I'm writing some big coffee files, and as the program is growing in complexity, my function & argument names have become a little longer, thus for readability's sake, i've to break the function declaration line into two or more lines like so:

testFunctionWhichBecameLong = (opt_1, opt_2,
                               opt_3, opt_4) ->
    return opt1 * opt2 - opt3 / opt4

These kinds of functions are not being highlighted, and thus the function starts to look like an ugly duckling...

Look at this image for more details:
broken coffee-script bundle

@kumarharsh
Copy link
Author

It is not the theme which has the problem, as Sublime Text is not even showing the fold-markers for the second function...

daylerees/colour-schemes#95

@kumarharsh
Copy link
Author

The scopes for the single-line function are: source.coffee meta.function.coffee entity.name.function.coffee
For the multi-line function, it is: source.coffee variable.assignment.coffee variable.assignment.coffee

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

No branches or pull requests

1 participant