tree-sitter-langs icon indicating copy to clipboard operation
tree-sitter-langs copied to clipboard

Add EmacsLisp support

Open jcs090218 opened this issue 4 years ago • 3 comments

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! 😕

jcs090218 avatar Aug 18 '21 07:08 jcs090218

That's pretty weird, since tests pass on CI.

ubolonton avatar Aug 18 '21 16:08 ubolonton

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.

ubolonton avatar Aug 18 '21 16:08 ubolonton

I agreed. I have removed the highlights.scm just now!

jcs090218 avatar Oct 07 '21 16:10 jcs090218