Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi dear treesitter/typst community,
inner products are commonly denoted using
$angle.l ..., ... angle.r$or as of recently$chevron.l ..., ... chevron.r$in typst documents.Another valid method it seems is to use unicode characters like
$⟨..., ...⟩$instead (imo more readable).Especially in deeply nested equations using a plugin like HiPhish/rainbow-delimiters.nvim is a good way to not get lost. It does however depend on the underlying treesitter parser being able to identify
⟨and⟩as bracket pairs, just like(and). Currently, this was not the case.I made some changes so that
⟨and⟩does get recognised as a bracket pair, resulting in this pull request. Could you please skim over it and possibly merge it? I am completely new to treesitter parsers, so I am not sure if my code is well written, but nonetheless I tested it and it works:PS: I accidentally started development from the
masterbranch. I will fix this when I get to it, hopefully asap.