tree-sitter-langs
tree-sitter-langs copied to clipboard
Add EmacsLisp support
I am getting the error below, with the following test
(setq tree-sitter-langs-git-dir "C:/Users/xxx/path/to/tree-sitter-langs/")
(tree-sitter-langs-compile 'elisp t)
Build message.
[tree-sitter-langs] Processing elisp
[tree-sitter-langs] Running (git config --file .gitmodules --get submodule.repos/elisp.url) in C:/Users/xxx/path/to/tree-sitter-langs/
[tree-sitter-langs] Running (git submodule status --cached repos/elisp) in C:/Users/xxx/path/to/tree-sitter-langs/
[tree-sitter-langs] Running (git submodule status -- repos/elisp) in C:/Users/xxx/path/to/tree-sitter-langs/
[tree-sitter-langs] Running (tree-sitter generate) in C:/Users/xxx/path/to/tree-sitter-langs/repos/elisp/
if: Error calling (tree-sitter generate), exit code is 1
Build result
Process tree-sitter exited abnormally with code 1
It's weird since I am able to do tree-sitter generate through terminal! 😕
That's pretty weird, since tests pass on CI.
The highlighting patterns don't seem to be as comprehensive as the built-in major mode, so tree-sitter-hl-use-font-lock-keywords should be set to t in elisp buffers. If the patterns don't really improve highlighting, tree-sitter-hl-mode should even be turned off in these buffers.
I agreed. I have removed the highlights.scm just now!