Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion syntax/madoko.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ endif

syn case ignore

syn region madokoTildeBlock "\v^~*$"
" This isn't quite accurate because it doesn't match the number of ~ at the start and end, as the
" Madoko spec. indicates. However, I don't think that this can be done with Vim syntax highlighting,
" so this may be the best approximation.
syn region madokoTildeBlock start="\v^~*$" end="\v^~*$"

syn include @tex syntax/tex.vim
syn region madokoMath start="\v\$" end="\v\$" contains=@tex keepend
Expand Down