Skip to content

Add EmacsLisp support #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Add EmacsLisp support #37

wants to merge 4 commits into from

Conversation

jcs090218
Copy link
Member

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

@ubolonton
Copy link
Collaborator

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

@ubolonton
Copy link
Collaborator

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.

@jcs090218
Copy link
Member Author

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

@jcs-PR jcs-PR closed this by deleting the head repository Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants