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

where highlighted as keyword even when it's a normal variable #135

Open
non-Jedi opened this issue Jul 13, 2020 · 0 comments
Open

where highlighted as keyword even when it's a normal variable #135

non-Jedi opened this issue Jul 13, 2020 · 0 comments

Comments

@non-Jedi
Copy link
Contributor

non-Jedi commented Jul 13, 2020

where = 5

The above is valid julia code that assigns the value 5 to the variable where. It's fontified as if where is a keyword though. Test case that can be added once this is fixed:

(let ((s1 "where =  t")
        (s2 "x = :where"))
    (julia--should-font-lock s2 6 'julia-quoted-symbol-face)
    (julia--should-font-lock s1 1 nil))

As far a I can tell, where is the only keyword that behaves this way (since it's only a keyword in certain contexts. Perhaps it should instead by font-locked a part of the function-call regexps?

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