Skip to content
New issue

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

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

Already on GitHub? # to your account

Support escaped space in math mode #1

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

pickoba
Copy link
Contributor

@pickoba pickoba commented Mar 19, 2023

This PR adds escaped space ("\ ") as math_unary. Since escaped spaces can have superscripts and subscripts, I think it is appropriate to treat them as math_unary. src/grammar.json and src/parser.c are generated by npx tree-sitter generate. (I am not familiar with tree-sitter development, so please let me know if there are any flaws)

@monaqa
Copy link
Owner

monaqa commented Apr 8, 2023

I confirmed that some examples work. Thank you!

@monaqa monaqa merged commit 5519c54 into monaqa:master Apr 8, 2023
@pickoba pickoba deleted the escaped-space-in-math branch April 9, 2023 02:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants