Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Some arguments of lambda functions are incorrectly highlighted #186

Open
dtaskoff opened this issue Aug 12, 2019 · 2 comments
Open

Some arguments of lambda functions are incorrectly highlighted #186

dtaskoff opened this issue Aug 12, 2019 · 2 comments

Comments

@dtaskoff
Copy link

First arguments of lambda functions, starting with letters, which are part of escape sequences (n, r, t, etc.), are highlighted together with the preceding \ as an escape sequence.
e.g.: (\name -> prettify name) gets highlighted as (\name -> prettify name).

@andys8
Copy link

andys8 commented Sep 12, 2019

I've a fork for syntax highlighting: andys8/vim-elm-syntax. There are smaller changes for lambdas and it doesn't appear for me:

image

So backporting some of the changes or using the fork could be options.

@dtaskoff
Copy link
Author

I have a plugin with elm syntax, as well, but I thought that it's good to have a plugin shared across the community.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants