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

anonymous functions have one additional character included after the final } #2

Closed
bigfish opened this issue Oct 29, 2013 · 2 comments

Comments

@bigfish
Copy link

bigfish commented Oct 29, 2013

See in the example screenshot, where there is an anonymous function assigned to a var. Note that the ; after the assignment is included with the function scope coloring. This ; should be the same color as the parent scope. I have also seen this when passing an anonymous function as an argument to another function... the char after it is included, which is a bit confusing. It seems there may be an 'off by one' error somewhere which is including the additional character.

This may be an esprima bug..

@bigfish
Copy link
Author

bigfish commented Nov 1, 2013

Awesome. If you could push the new version to NPM, I could integrate it into my Vim plugin http://www.vim.org/scripts/script.php?script_id=4748

@bigfish bigfish closed this as completed Nov 1, 2013
@mazurov
Copy link
Owner

mazurov commented Nov 1, 2013

Published 🚢

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

2 participants