clojure-lsp / clojure-lsp

Clojure & ClojureScript Language Server (LSP) implementation

Home Page:https://clojure-lsp.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

devurandom opened this issue · comments

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

  • OS: Fedora Linux 40
  • Editor: IntelliJ 2024.1.1 with Clojure LSP plugin 2.4.5
  • Version: clojure-lsp 2024.04.22-11.50.26, clj-kondo 2024.03.13