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

The symbols in the listing break the highlighting. #2636

Open
oriyia opened this issue Feb 19, 2023 · 2 comments
Open

The symbols in the listing break the highlighting. #2636

oriyia opened this issue Feb 19, 2023 · 2 comments
Labels

Comments

@oriyia
Copy link

oriyia commented Feb 19, 2023

Description

Packages in question: shortvrb, listings.
Using the %, $ symbols in the short versions of the commands of the specified packages, syntax highlighting breaks.

Steps to reproduce

Launched with minimal configuration:
nvim minimal.vim minimal.tex
2023-02-19-152606_1802x511_scrot

Expected behavior

No response

Actual behavior

No response

Do you use a latexmkrc file?

Нет

VimtexInfo

System info:
  OS: Ubuntu 22.04.1 LTS
  Vim version: NVIM v0.9.0-dev-414+gef5ab2bf7
  Has clientserver: true
  Servername: /run/user/1000/nvim.633996.0

VimTeX project: test
  base: test.tex
  root: /home/oriyia/abstracts/test
  tex: /home/oriyia/abstracts/test/test.tex
  main parser: current file verified
  document class: book
  packages: keyval listings lstmisc shortvrb
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Zathura
    xwin id: 0
  qf method: LaTeX logfile
@oriyia oriyia added the bug label Feb 19, 2023
@lervag
Copy link
Owner

lervag commented Feb 19, 2023

This does not work because VimTeX does not support the \MakeShortVerb command and therefore doesn't recognize the custom |...| syntax. I'm not sure if I want to implement this, because it is quite complicated.

@lervag
Copy link
Owner

lervag commented Feb 19, 2023

However, it is not impossible to implement it, so I may be persuaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants