Language Server Provider for ImHex's pattern language.
- Semantic syntax highlighting
- Go to definition (Experimental. Don't expect it to work in the following scenarios)
- names defined in a namespace
- Find references (Experimental. Don't expect it to work in the following scenarios)
- names defined in a namespace
- Inlay hints
- Completion
- Get the server's binary.
- Move it somewhere in $PATH
- If using linux, you might need to give it execution permission
sudo chmod u+x <<path to executable>>/hexpat-language-server
- To check that it is installed correctly, run the program from the terminal
hexpat-language-server
. If you don't seehexpat-language-server vX.X.X
, it is not installed correctly.
- Get rust
- Clone this repo
git clone https://github.com/Calcoph/hexpat-lsp.git
- Prefer to use a release tagged commit, since latest commit might not even compile.
cd hexpat-lsp
- Compile using
cargo build --release
- Take the binary at
target/release
(will be called hexpat-language-server or hexpat-language-server.exe) - Move it somewhere in $PATH
- If using linux, you might need to give it execution permission
sudo chmod u+x <<path to executable>>/hexpat-language-server
- To check that it is installed correctly, run the program from the terminal
hexpat-language-server
. If you don't seehexpat-language-server vX.X.X
, it is not installed correctly.
Available editors:
If you want to support this LSP in other editors here is what you have to take into account:
- Configuration called
hexpat-language-server.imhexBaseFolders
. It is an array of strings. - New semantic token
bitfield
. It's recommended that it inherits from "struct". - New semantic token
dollar
. It's recommended that it inherits from "variable".