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

Add missing operators and fix precedences #324

Merged
merged 3 commits into from
Jan 31, 2022

Conversation

BenPH
Copy link
Contributor

@BenPH BenPH commented Jan 29, 2022

Relates to julia-vscode/LanguageServer.jl#1016 which was missing the ¦ operator. Also adds other missing operators and mismatched precedences that I found along the way.

Fixes #317

@BenPH
Copy link
Contributor Author

BenPH commented Jan 29, 2022

I'm also wondering if

get_prec(op) = AllPrecs[maybe_strip_suffix(op)]

should be changed to get_prec(op) = get(AllPrecs, maybe_strip_suffix(op), 0) to have a fallback precedence for missing operators.

@pfitzseb
Copy link
Member

Yeah, let's do that.

@pfitzseb pfitzseb merged commit a090b63 into julia-vscode:master Jan 31, 2022
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

Successfully merging this pull request may close these issues.

plus_minus, minus_plus are not recognized as unary ops
2 participants