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

Highlighting for ambiguous anonymous functions passed as parameters #8

Open
captainbland opened this issue Nov 9, 2015 · 0 comments

Comments

@captainbland
Copy link

For:

func = (f)->f!

The meaning of:

func(x)->

is very different to (note the space after func denoting that what comes after the space should be a parameter)

func (x)->

Where the first would compile to something like:

func(x); function(x) { };

and the second would compile to something like:

func(function(x) { });

However they seem to be highlighted the same way. It would be very helpful if the syntax highlighter highlighted these cases differently.

@captainbland captainbland changed the title Highlighting for ambiguous anonymous function calls passed as parameters Highlighting for ambiguous anonymous functions passed as parameters Nov 9, 2015
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