From 6cd2d5417d728ea96c5c52b34629c944a89eec60 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 11 Feb 2015 11:27:11 -0800 Subject: Update --- after/syntax/help.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'after/syntax') diff --git a/after/syntax/help.vim b/after/syntax/help.vim index b352a1e6..e3232128 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,6 +1,12 @@ -let b:current_syntax = '' -unlet b:current_syntax +" Extends standard help syntax with highlighting of Scala code. +" +" Place code between !sc! and !/sc! delimiters. These will be hidden if Vim is +" built with conceal support. + +unlet! b:current_syntax + syntax include @ScalaCode syntax/scala.vim + if has('conceal') syntax region rgnScala matchgroup=Ignore concealends start='!sc!' end='!/sc!' contains=@ScalaCode else -- cgit v1.2.3