Skip to content

Commit

Permalink
feat(syntax): basic support for ddot
Browse files Browse the repository at this point in the history
refer: #3091
  • Loading branch information
lervag committed Feb 4, 2025
1 parent 3c55cc0 commit 632a2d7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions autoload/vimtex/syntax/core.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,27 @@ let s:alphabet_map = {
\ ['Z', 'Ż'],
\ ['z', 'ż'],
\ ],
\ 'ddot': [
\ ['A', 'Ä'],
\ ['a', 'ä'],
\ ['E', 'Ë'],
\ ['e', 'ë'],
\ ['H', ''],
\ ['h', ''],
\ ['I', 'Ï'],
\ ['i', 'ï'],
\ ['O', 'Ö'],
\ ['o', 'ö'],
\ ['t', ''],
\ ['U', 'Ü'],
\ ['u', 'ü'],
\ ['W', ''],
\ ['w', ''],
\ ['X', ''],
\ ['x', ''],
\ ['Y', 'Ÿ'],
\ ['y', 'ÿ'],
\ ],
\ 'hat': [
\ ['a', 'â'],
\ ['A', 'Â'],
Expand Down Expand Up @@ -2024,6 +2045,7 @@ function! s:match_math_symbols() abort " {{{1
\ ['bar', 'bar'],
\ ['hat', 'hat'],
\ ['dot', 'dot'],
\ ['ddot', 'ddot'],
\ ['\%(var\)\?math\%(bb\%(b\|m\%(ss\|tt\)\?\)\?\|ds\)', 'double'],
\ ['mathfrak', 'fraktur'],
\ ['math\%(scr\|cal\)', 'script'],
Expand Down
5 changes: 5 additions & 0 deletions test/test-syntax/test-conceal.tex
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,9 @@ \subsubsection{testing}
$\{x\}$
$\left\{x\right\}$

\[
\dot a
\ddot a
\]

\end{document}

0 comments on commit 632a2d7

Please sign in to comment.