From ca197723152e03fb332530d85cb1e6b890936388 Mon Sep 17 00:00:00 2001 From: cwahbong Date: Mon, 4 May 2015 14:16:09 +0800 Subject: [PATCH] Fix folding for snippet files. --- syntax/snippets.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/snippets.vim b/syntax/snippets.vim index bebd041..94e1458 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -47,10 +47,10 @@ syn match snipExtendsKeyword "^extends" contained display " snippet {{{3 -syn region snipSnippet start="^snippet\_s" end="^\zeendsnippet\s*$" contains=snipSnippetHeader nextgroup=snipSnippetFooter fold keepend +syn region snipSnippet start="^snippet\_s" end="^endsnippet\s*$" contains=snipSnippetHeader fold keepend syn match snipSnippetHeader "^.*$" nextgroup=snipSnippetBody,snipSnippetFooter skipnl contained contains=snipSnippetHeaderKeyword syn match snipSnippetHeaderKeyword "^snippet" contained nextgroup=snipSnippetTrigger skipwhite -syn region snipSnippetBody start="\_." end="^\zeendsnippet\s*$" contained contains=snipLeadingSpaces,@snipTokens +syn region snipSnippetBody start="\_." end="^\zeendsnippet\s*$" contained nextgroup=snipSnippetFooter contains=snipLeadingSpaces,@snipTokens syn match snipSnippetFooter "^endsnippet.*" contained contains=snipSnippetFooterKeyword syn match snipSnippetFooterKeyword "^endsnippet" contained