Skip to content

Incorrect syntax highlighting for \nameref #2208

@zoomiti

Description

@zoomiti

Description

When using \nameref{something} something is not syntax highlighted white, and spell is still turned on for something.

Steps to reproduce

  1. nvim -u minimal.vim minimal.tex
\documentclass{article}
\usepackage{hyperref}

\begin{document}

\section{Test}
\label{osc}
\autoref{osc}
\nameref{osc}
\ref{osc}
\eqref{osc}

\end{document}

Expected behavior

I expect all the \ref to syntax highlight their contents white and turn spell off within them.

Actual behavior

All but \nameref is correctly syntax highlighted.

image

Do you use a latexmkrc file?

No

VimtexInfo

System info
  OS: Linux 5.10.16.3-microsoft-standard-WSL2
  Vim version: NVIM v0.5.1
  Has clientserver: true
  Servername: /tmp/nvim51nQtp/0

VimTeX project: test
  base: test.tex
  root: /mnt/c/Users/sotol/OneDrive/Documents/School/2021 Fall/Circuits/Lab5
  tex: /mnt/c/Users/sotol/OneDrive/Documents/School/2021 Fall/Circuits/Lab5/test.tex
  main parser: current file verified
  document class: article
  packages: atbegshi atbegshi-ltx atveryend atveryend-ltx auxhook bigintcalc bitset etexcmds gettitlestring hycolor hyperref iftex infwarerr intcalc keyval kvdefinekeys kvoptions kvsetkeys letltxmacro ltxcmds nameref pdfescape pdftexcmds refcount rerunfilecheck uniquecounter url
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  qf method: LaTeX logfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions