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

+: is highlighted as two separate, different tokens #191

Closed
MaximeKjaer opened this issue Jan 22, 2021 · 0 comments
Closed

+: is highlighted as two separate, different tokens #191

MaximeKjaer opened this issue Jan 22, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MaximeKjaer
Copy link
Contributor

MaximeKjaer commented Jan 22, 2021

+ is keyword.operator.arithmetic.scala, : is keyword.operator.scala. This is likely also a problem for :++, etc

We can solve this by adding a rule highlighting ${opchar}{2,} as an operator.

@MaximeKjaer MaximeKjaer self-assigned this Jan 22, 2021
@MaximeKjaer MaximeKjaer added the bug Something isn't working label Jan 29, 2021
Jentsch added a commit to Jentsch/vscode-scala-syntax that referenced this issue Oct 9, 2024
Doesn't affect comparison, arithmetic nor logical.

In the match `:+` the `+` became redundant, because it's contained in
`opchar`.

Discovered while working on scala#191.
Jentsch added a commit to Jentsch/vscode-scala-syntax that referenced this issue Oct 9, 2024
Jentsch added a commit to Jentsch/vscode-scala-syntax that referenced this issue Oct 11, 2024
Doesn't affect comparison, arithmetic nor logical.

In the match `:+` the `+` became redundant, because it's contained in
`opchar`.

Discovered while working on scala#191.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant