summaryrefslogblamecommitdiffstats
path: root/after/syntax/help.vim
blob: a4bc0bc7a94c496a1d32d7069abc18035bdf7732 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                                                             






                                                                              
                                          
 




                                                                                                   
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1
  finish
endif

" 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
  syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode
endif