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

Single line @doc breaks syntax highlighting #851

Closed
simonedavico opened this issue Jan 8, 2025 · 2 comments
Closed

Single line @doc breaks syntax highlighting #851

simonedavico opened this issue Jan 8, 2025 · 2 comments

Comments

@simonedavico
Copy link

What the issue title says. Example:

defmodule MyModule.Test do
  def some_fn do
    IO.puts("Hello World")
  end

  @doc "This doc breaks highlighting"
  def some_other_fn do
    IO.puts("Hello World")
  end
end

Renders in Cursor like in the screenshot:

image

Elixir version:

❯ elixir --version
Erlang/OTP 26 [erts-14.2.5.4] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Elixir 1.17.3 (compiled with Erlang/OTP 26)
@pdm-jd
Copy link

pdm-jd commented Jan 8, 2025

Fix for it here lexical-lsp/vscode-lexical#92

You can manually edit ~/.vscode/extensions/syntaxes/elixir.json or ~/.cursor/extensions/syntaxes/elixir.json if you like and reload.

@simonedavico
Copy link
Author

simonedavico commented Jan 9, 2025

Thank you @pdm-jd! Closing this one, since the problem is on the vscode extension.

For anyone stumbling upon this, the file to fix for me was at path .cursor/extensions/lexical-lsp.lexical-0.0.19/syntaxes/elixir.json.

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

2 participants