Emacs lsp-mode with purescript-language-server?

Tiny bump on this since I came across this while looking for answers. Turns out there’s a bug in the syntax table for purescript-mode where . is treated as a “symbol constituent” rather than “punctuation”. In turn, Emacs takes Array.so as the entire identifier to match against completion candidates rather than just so

A quick solution is:

(modify-syntax-entry ?. "." purescript-mode-syntax-table)

I think my purs-mode does this already.

2 Likes