Skip to content
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

Feature Request: Update for tree-sitter parser #175

Open
kylebarron opened this issue Mar 15, 2018 · 2 comments
Open

Feature Request: Update for tree-sitter parser #175

kylebarron opened this issue Mar 15, 2018 · 2 comments
Labels

Comments

@kylebarron
Copy link

Atom 1.25 came out today, and with that is a new opt-in parser for syntax highlighting called tree-sitter.

Instead of doing regexes on each line of code, it actually parses the whole document, which means it's performant on long lines (which would fix #139), and it's also faster than the current method of syntax highlighting, which is helpful when working with large LaTeX documents.

This does mean creating a new file with rules that describe the language, according to this documentation.

I might be willing to take a stab at writing this (though I might not get too far since I'm LaTeX is rather complex).

@yudai-nkt
Copy link
Collaborator

Thanks for reaching out us, and we also recognize how powerful tree-sitter can be. That being said, each parser library is a Node.js library separated from Atom package of the associated language and yitzchak/tree-sitter-latex is being developed.

We have no plan to create our own parser, but will definitely consider adding tree-sitter support once tree-sitter-latex is published to npm.

@yitzchak
Copy link
Contributor

@Aerijo @yudai-nkt I am currently a little busy with some other projects so if either of you is interested in picking up where I left off on yitzchak/tree-sitter-latex please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants