Skip to content

Buggy custom conceal due to inner command #2048

@patnr

Description

@patnr

I take advantage of this feature by using:

" ~/.vim/syntax/tex.vim:
setlocal conceallevel=2
let g:vimtex_syntax_custom_cmds = [{'name': 'keyw', 'mathmode': 0, 'argstyle': 'boldital' , 'conceal': 1}]

This should conceal \keyw in the following:

% test.tex
\documentclass[a4paper]{article}
\begin{document}
\keyw{Piecewise \textbf{test} splines}
\end{document}

Unfortunately, the presence of \textbf{test} messes up the concealment, as seen in the screenshot
Screenshot from 2021-05-12 15-33-44

I have used the standard minimal.vim for testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions