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

Characters $, % break syntax highlighting #75

Open
oriyia opened this issue Feb 19, 2023 · 1 comment
Open

Characters $, % break syntax highlighting #75

oriyia opened this issue Feb 19, 2023 · 1 comment

Comments

@oriyia
Copy link

oriyia commented Feb 19, 2023

Hi!

Packages used: shortvrb, listings. When checking, I disabled the other plugins.

The $ symbol in short versions of listings breaks syntax highlighting. Also, the % symbol breaks the highlighting both in the usual lists package command and in abbreviated forms:
2023-02-19-170330_2008x712_scrot

@pfoerster
Copy link
Member

Unfortunately, I do not think that we can fix this issue within a tree-sitter grammar. At the moment, there is no way, to parse this construct correctly without some kind of state that threaded through the parser.

thekpaul added a commit to thekpaul/DOTS that referenced this issue Apr 8, 2024

Verified

This commit was signed with the committer’s verified signature.
thekpaul Paul Kim (김형준)
The `vimtex` plugin is, currently, more capable of handling various
verbatim-related environment and text parsing.
Further adjustments may be introduced for `vimtex` or Treesitter
regarding LaTeX typsetting configurations.

While the LaTeX parser is downloaded automatically due to having
`autoinstall` enabled, highlights will be disabled with the
`highlights.disable` option so that `vimtex` takes control.

Check latex-lsp/tree-sitter-latex#75 for more information on this topic.

Signed-off-by: Paul Kim <44695374+thekpaul@users.noreply.github.com>
thekpaul added a commit to thekpaul/DOTS that referenced this issue Nov 11, 2024
The `vimtex` plugin is, currently, more capable of handling various
verbatim-related environment and text parsing.
Further adjustments may be introduced for `vimtex` or Treesitter
regarding LaTeX typsetting configurations.

While the LaTeX parser is downloaded automatically due to having
`autoinstall` enabled, highlights will be disabled with the
`highlights.disable` option so that `vimtex` takes control.

Check latex-lsp/tree-sitter-latex#75 for more information on this topic.

Signed-off-by: Paul Kim <44695374+thekpaul@users.noreply.github.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

No branches or pull requests

2 participants