From 81f91731385e0a15f3eddf7439bb9a0fed3b4c04 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Tue, 5 Aug 2014 17:21:35 -0700 Subject: [PATCH] Fix highlighting of nested tab stops Nested tab stops like `${1:head ${2} tail}` were not properly highlighting the "tail" or the closing `}` of the outer tab stop. --- syntax/snippets.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/snippets.vim b/syntax/snippets.vim index b722d4d..aa2da1b 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -105,7 +105,7 @@ syn match snipMirror "\$\d\+" contained syn cluster snipTokens add=snipMirror syn cluster snipTabStopTokens add=snipMirror -syn region snipTabStop matchgroup=snipTabStop start="\${\d\+[:}]\@=" end="}" contained contains=snipTabStopDefault +syn region snipTabStop matchgroup=snipTabStop start="\${\d\+[:}]\@=" end="}" contained contains=snipTabStopDefault extend syn region snipTabStopDefault matchgroup=snipTabStop start=":" skip="\\[{}]" end="\ze}" contained contains=snipTabStopEscape,snipBalancedBraces,@snipTabStopTokens keepend syn match snipTabStopEscape "\\[{}]" contained syn region snipBalancedBraces start="{" end="}" contained transparent extend