summaryrefslogtreecommitdiffstats
path: root/after/syntax/help.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax/help.vim')
-rw-r--r--after/syntax/help.vim10
1 files changed, 8 insertions, 2 deletions
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