Auto commit: 2024-11-08 02:50:01
This commit is contained in:
parent
4979eadf16
commit
e0f48024b9
1 changed files with 4 additions and 5 deletions
|
@ -27,13 +27,12 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = "markdown",
|
pattern = "markdown",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
syn region math start=/\$\$/ end=/\$\$/ contained contains=@tex ft=tex
|
syn region math start=/\$\$/ end=/\$\$/ contains=@tex=tex
|
||||||
" inline math
|
" inline math
|
||||||
syn match math '\$[^$].\{-}\$' contained contains=@tex ft=tex
|
syn match math '\$[^$].\{-}\$' contains=@tex
|
||||||
syn include @tex syntax/tex.vim
|
" syn include @tex syntax/tex.vim
|
||||||
hi link math @texMath
|
|
||||||
" actually highlight the region we defined as "math"
|
" actually highlight the region we defined as "math"
|
||||||
" hi link math Statement
|
hi link math Statement
|
||||||
]])
|
]])
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue