LALRPOP language server
Introduction
This repo holds a language server for LALRPOP, an LR(1) parser generator for Rust.
The project is powered by Language Server Protocol implementation for Rust based on Tower.
It's also based on tower-lsp-boilerplate, a useful github project template which makes writing new language servers easier.
The syntax highlighting is provided by LALRPOP syntax highlighting for VS Code by guyutongxue.
Development using VSCode
pnpm i
cargo build
- Open the project in VSCode:
code .
- In VSCode, press F5 or change to the Debug panel and click Launch Client.
- In the newly launched VSCode instance, open a folder that contains a lalrpop file.
- If the LSP is working correctly you should see syntax highlighting and the features described below should work.
Note
If encountered errors like Cannot find module '/xxx/xxx/dist/extension.js'
please try run command tsc -b manually, you could refer https://github.com/IWANABETHATGUY/tower-lsp-boilerplate/issues/6 for more details
Features
[x] go to definition
[x] find reference
[ ] rename
| |