From 46cd31363f3dc0001374f736dcc1b5bbd735599f Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Wed, 16 Mar 2016 09:24:18 +0900 Subject: [PATCH] Fix math syntax highlighting after end pattern Add keepend to match end of the region. Fix #271 --- syntax/markdown.vim | 4 ++-- test/syntax.vader | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 0dbf49a..1614d7b 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -140,8 +140,8 @@ endif if get(g:, 'vim_markdown_math', 0) syn include @tex syntax/tex.vim - syn region mkdMath matchgroup=mkdDelimiter start="\\\@