if exists("b:current_syntax") finish endif runtime! syntax/html.vim unlet! b:current_syntax for i in range(1,6) exe "syn region xwikiHeading" . i . " start='^" \ . repeat("=", i) . "' end='" . repeat("=", i) . "$'" \ . " contains=@xwikiFormat" exe "syn cluster xwikiHeadings add=xwikiHeading" . i exe "hi def link xwikiHeading" . i . " htmlH" . i endfor syn region xwikiBold start="\*\*" end="\*\*" \ contains=xwikiItalic,xwikiMonospace,xwikiUnderline,xwikiStriked,xwikiSuperscript,xwikiSubscript syn region xwikiItalic start="\(\a\+:\)\@