diff --git a/autoload/vimtex/syntax/core.vim b/autoload/vimtex/syntax/core.vim index 99b9d7b204..0764599211 100644 --- a/autoload/vimtex/syntax/core.vim +++ b/autoload/vimtex/syntax/core.vim @@ -1396,16 +1396,20 @@ endfunction let s:re_sub = \ '[-+=()0-9aehijklmnoprstuvx]\|\\\%(' - \ . join([ - \ 'beta', 'rho', 'phi', 'gamma', 'chi' + \ .. join([ + \ 'beta', 'gamma', 'rho', 'phi', 'chi' + \ ], '\|') . '\)\>' +let s:re_super = + \ '[-+=()<>:;0-9a-qr-zA-FG-QRTUVW]\|\\\%(' + \ .. join([ + \ 'beta', 'gamma', 'delta', 'epsilon', 'theta', 'iota', 'phi', 'chi' \ ], '\|') . '\)\>' -let s:re_super = '[-+=()<>:;0-9a-pr-zABDEG-PRTUVW]' let s:map_sub = [ \ ['\\beta\>', 'ᵦ'], - \ ['\\rho\>', 'ᵨ'], - \ ['\\phi\>', 'ᵩ'], \ ['\\gamma\>', 'ᵧ'], + \ ['\\rho\>', 'ᵨ'], + \ ['\\phi\>', 'ᵩ'], \ ['\\chi\>', 'ᵪ'], \ ['(', '₍'], \ [')', '₎'], diff --git a/test/test-syntax/test-conceal.tex b/test/test-syntax/test-conceal.tex index 1923d55f0e..b46fe0405b 100644 --- a/test/test-syntax/test-conceal.tex +++ b/test/test-syntax/test-conceal.tex @@ -22,6 +22,19 @@ $a_\rho$ $\ket{\psi_{i+1}}$ +$a^q$ +$a^C$ +$a^F$ +$a^Q$ +$a^{\beta}$ +$a^{\gamma}$ +$a^{\delta}$ +$a^{\epsilon}$ +$a^{\theta}$ +$a^{\iota}$ +$a^{\phi}$ +$a^{\chi}$ + $a^1$ $a^+$ $a^-$