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

Should't do: be highlighted in this context? #133

Open
ijverig opened this issue Apr 27, 2018 · 1 comment
Open

Should't do: be highlighted in this context? #133

ijverig opened this issue Apr 27, 2018 · 1 comment

Comments

@ijverig
Copy link

ijverig commented Apr 27, 2018

do is correctly highlighted in a do … end block.
However, when we use its short version, do looses its color:

screen shot 2018-04-27 at 14 38 10

It's then parsed as a named parameter (keyword list), which it is, but it's still the do block and IMHO should be highlighted as such.

Thoughts?

@trosel
Copy link

trosel commented Jul 15, 2018

I'm going to bump this up.

def myFun(n), do: "num is #{n}"

That's totally valid and very common. Should be an easy change in the syntax config.

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