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

Tree sitter rst seem to miss linked text just after an opening [ #49

Closed
Carreau opened this issue Dec 25, 2023 · 2 comments · Fixed by #50
Closed

Tree sitter rst seem to miss linked text just after an opening [ #49

Carreau opened this issue Dec 25, 2023 · 2 comments · Fixed by #50
Labels
bug Something isn't working

Comments

@Carreau
Copy link

Carreau commented Dec 25, 2023

Example from numpy linspace:

Return evenly spaced numbers over a specified interval.

Returns num evenly spaced samples, calculated over the
interval [`start`, `stop`].

The `start` will be part of the paragraph text and not an interpreted_text node.

This is not the case if the preceding charater is a (. I haven't exaustively tested sphinx, but it does work for [.

@stsewd stsewd added the bug Something isn't working label Dec 28, 2023
stsewd added a commit that referenced this issue Dec 29, 2023
In some situations, the parser was parsing "too much" as text.
Marking the end of the text node more early fixes this.

Fixes #49
stsewd added a commit that referenced this issue Dec 29, 2023
In some situations, the parser was parsing "too much" as text.
Marking the end of the text node more early fixes this.

Fixes #49
@Carreau
Copy link
Author

Carreau commented Dec 29, 2023

Many thanks for the rapid update, and happy new year 2024 I guess.

@stsewd
Copy link
Owner

stsewd commented Dec 29, 2023

Happy new year! 🎉

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

Successfully merging a pull request may close this issue.

2 participants