From 925c00d2509c205a2b4262f0f59c7888aa364514 Mon Sep 17 00:00:00 2001 From: Wil Thomason Date: Mon, 19 Feb 2018 14:21:44 -0500 Subject: [PATCH] Fix syntax highlighting error for tilde blocks --- syntax/madoko.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syntax/madoko.vim b/syntax/madoko.vim index 298ae7d..0b5f78c 100644 --- a/syntax/madoko.vim +++ b/syntax/madoko.vim @@ -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