vscode-elixir-ls icon indicating copy to clipboard operation
vscode-elixir-ls copied to clipboard

[Feature request] Distinct scopes for atoms and keywords

Open pikeas opened this issue 11 months ago • 1 comments

Environment

  • Elixir 1.18.0 (compiled with Erlang/OTP 27)
  • MacOS VSCode, ElixirLS 0.25.0

Current behavior

Atoms and keyword lists have identical syntax highlighting.

Screenshot 2024-12-29 at 08 35 52

Inspect Editor Tokens and Scopes shows they both have a token type of constant.language.symbol.elixir.source.elixir.

Expected behavior

Different language constructs should have different scopes. For another example, true, false, and nil have the same scope as well.

pikeas avatar Dec 29 '24 13:12 pikeas

It was like that since the first grammar. I won't risk any dramatic changes here. Maybe adding a subtype would be OK, but this would need a custom highlighting scheme

lukaszsamson avatar Dec 29 '24 13:12 lukaszsamson