So I'm writing in the Typst
language and I modified the language-configuration.json
file of the language server extension and added the _
and *
characters to the autoclosing pairs for italics and bold text respectively. But I don't want it to enter into effect when I'm typing in equation mode (inside two $
symbols, not necessarly on the same line).
I read through the vscode extension API's section on language-configuration.json
and I found the behaviour that I was looking for through the notIn
option to add to each pair type. The problem is the only two options available are comment
or string
(as far as I could tell).
How can I add a definition for "equation", that being text between two $
symbols, so that vscode can recognize it?