From 736698469e10aa91d6fd60338ee0ed0f4c892886 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Sun, 12 Aug 2012 20:05:29 +0800 Subject: [PATCH] improve snipVar matches, like 10 100 etc --- syntax/snippets.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/snippets.vim b/syntax/snippets.vim index e04a04d..60f3f85 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -26,9 +26,9 @@ syn match snipEnd "^endsnippet" contained contains=snipKeyword syn region snipCommand contained keepend start="`" end="`" contains=snipPythonCommand,snipVimLCommand syn region snipPythonCommand contained keepend start="`!p" end="`" contained contains=@Python syn region snipVimLCommand contained keepend start="`!v" end="`" contained contains=@Viml -syn match snipVar "\$\d" contained +syn match snipVar "\$\d*" contained syn region snipVisual matchgroup=Define start="\${VISUAL" end="}" contained -syn region snipVarExpansion matchgroup=Define start="\${\d" end="}" contained contains=snipVar,snipVarExpansion,snipCommand +syn region snipVarExpansion matchgroup=Define start="\${\d*" end="}" contained contains=snipVar,snipVarExpansion,snipCommand syn region snippet fold keepend start="^snippet" end="^endsnippet" contains=snipStart,snipEnd,snipTabsOnly,snipCommand,snipVarExpansion,snipVar,snipVisual " global definitions