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

Update tree-sitter-latex and highlights #3370

Merged
merged 4 commits into from
Aug 10, 2022

Conversation

erasin
Copy link
Contributor

@erasin erasin commented Aug 9, 2022

update tree-sitter-latex

update highlights from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/latex/highlights.scm
add textobject from https://github.com/nvim-treesitter/nvim-treesitter-textobjects/blob/master/queries/latex/textobjects.scm

About highlights

I'm not sure about the markup for the Math section, It wasn't marked before. I left it as it was.

Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of text.math let's use markup.raw

runtime/queries/latex/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/latex/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/latex/highlights.scm Outdated Show resolved Hide resolved
erasin and others added 3 commits August 10, 2022 14:34
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
mark math with markup.raw
Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for updating these!

@the-mikedavis the-mikedavis merged commit 921027f into helix-editor:master Aug 10, 2022
AlexanderBrevig pushed a commit to AlexanderBrevig/helix that referenced this pull request Aug 29, 2022
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
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.

2 participants