clojure-lsp / clojure-lsp-intellij

Intellij Plugin for Clojure & ClojureScript development via Language Server (LSP) made in Clojure
https://clojure-lsp.io
MIT License
82 stars 6 forks source link

Clojure LSP incorrectly marks `[\!\@]` as an error `<form> expected, got '\!\@'` #54

Open devurandom opened 2 months ago

devurandom commented 2 months ago

Describe the bug

When I write in a *.clj file:

 [\!\@]

Clojure LSP IntelliJ marks \!\@ as an error: <form> expected, got '\!\@'

This appears to be independent of the actual values (\! and \@ in this case; e.g. \a\b or \.\: behaves the same way).

The vector [] is not necessary either. Given a file containing:

\a\b

Clojure LSP IntellJ will mark \a\b as an error: '\a\b' unexpected

Expected behavior

\a\b is valid syntax. [\a\b] is a vector containing char values \a and \b.

User details

Originally reported as https://github.com/clojure-lsp/clojure-lsp/issues/1816.

ericdallo commented 2 months ago

That's a bug on our Language grammar parser, but I don't know exactly how to solve it, help welcome for this one