vim-mbnotes/syntax/mbnotes.vim
2025-01-11 01:40:02 +00:00

25 lines
726 B
VimL

vim9s
if exists("b:current_syntax")
finish
endif
runtime! syntax/quarto.vim
unlet b:current_syntax
syn region mbnCalloutNote start=":::\s\+{\.callout-note\s*" end=":::$" keepend
hi link mbnCalloutNote Question
syn region mbnCalloutWarning start=":::\s\+{\.callout-warning\s*" end=":::$" keepend
hi link mbnCalloutWarning SpellCap
syn region mbnCalloutImportant start=":::\s\+{\.callout-important\s*" end=":::$" keepend
hi link mbnCalloutImportant SpellBad
syn region mbnCalloutTip start=":::\s\+{\.callout-tip\s*" end=":::$" keepend
hi link mbnCalloutNote Question
syn region mbnCalloutCaution start=":::\s\+{\.callout-caution\s*" end=":::$" keepend
hi link mbnCalloutWarning SpellCap
b:current_syntax = "mbnotes"