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

Paragraph starting with inline math causes error on Treesitter #427

Closed
gzagatti opened this issue Oct 17, 2022 · 3 comments
Closed

Paragraph starting with inline math causes error on Treesitter #427

gzagatti opened this issue Oct 17, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@gzagatti
Copy link
Contributor

Describe the bug

A paragraph that starts with in-line math:

\(1 + 1\) foobar

Causes a parsing error in Treesiter. The whole paragraph then fails to parse correctly.

Steps to reproduce

Write any paragraph that starts with in-line math:

\(1 + 1\) foobar

Highlight fails. Open :TSNodeUnderCursor and inspect the paragraph to find the error.

Expected behavior

Correct parsing of paragraphs with in-line math.

Emacs functionality

This functionality works in emacs.

Minimal init.lua

N/A

Screenshots and recordings

No response

OS / Distro

Ubuntu 22.04

Neovim version/commit

v0.8.0

Additional context

No response

@gzagatti gzagatti added the bug Something isn't working label Oct 17, 2022
@kristijanhusak
Copy link
Member

I'll open up an issue upstream in the tree-sitter grammar.

@kristijanhusak
Copy link
Member

This should be fixed now. Pull latest master and do :TSUpdate org.

@gzagatti
Copy link
Contributor Author

Perfect! It's working for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants