In Neovim v0.9.5 and typst.vim, typing an escaped dollar sign \$ is interpreted as if text after the dollar sign belonged to math mode.
For example, let's start with the following piece of text, typed into an empty buffer:
90 per month
Some text
This all looks good for me:
If I wrap 90 with a $ on both sides, it still looks fine:
However, if I change the first line to \$90 per month, everything after that part will be coloured blue:
As a matter of fact, if I have an unescaped opening $, intentionally leaving the closing $, it looks the same. (Except for the $ highlighted in red. That's an error about the missing closing $ reported by LSP.)
In Neovim v0.9.5 and typst.vim, typing an escaped dollar sign
\$
is interpreted as if text after the dollar sign belonged to math mode.For example, let's start with the following piece of text, typed into an empty buffer:
This all looks good for me:
If I wrap
90
with a$
on both sides, it still looks fine:However, if I change the first line to
\$90 per month
, everything after that part will be coloured blue:As a matter of fact, if I have an unescaped opening
$
, intentionally leaving the closing$
, it looks the same. (Except for the$
highlighted in red. That's an error about the missing closing$
reported by LSP.)