elixir-lsp / elixir-lsp/vscode-elixir-ls

Wrong textmate scope for __MODULE__ with function call

Open
#415 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
599
Forks
108
PR merge metrics
No merged PRs in 30d

Description

As you can see on the print attached, it seems to me the wrong rule it's being applied to `__MODULE__` macro (but all the others too) when there's a function call.

### Environment

* Elixir & Erlang versions (elixir --version): Erlang/OTP 26 [erts-14.1.1] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Elixir 1.16.1 (compiled with Erlang/OTP 26)

* VSCode ElixirLS version: 0.20.0
* Operating System Version: darwin 23.3.0

### Steps to reproduce:

Paste this on VSCode and check the Inspect Editor Tokens and Scopes where pointed
```elixir
defmodule Foo do

def bar, do: IO.puts("Call bar")
def mod, do: __MODULE__ # open VSCode's Inspect Editor Tokens and Scopes here
def zoo, do: __MODULE__.bar() # open VSCode's Inspect Editor Tokens and Scopes here

end
```

Screenshot 2024-03-13 at 14 30 20

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.