From 711aa760a8e58468302fc12e07c77b8f5c424476 Mon Sep 17 00:00:00 2001 From: Kartik Shenoy Date: Sat, 15 Nov 2014 17:35:12 -0700 Subject: [PATCH] Added support for Bold+Italic highlighting --- syntax/notes.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/syntax/notes.vim b/syntax/notes.vim index 995617b..f365712 100644 --- a/syntax/notes.vim +++ b/syntax/notes.vim @@ -78,6 +78,12 @@ endif syntax cluster notesInline add=notesBold highlight notesBold gui=bold cterm=bold +let s:concealends = has('conceal') ? ' concealends' : '' +execute 'syntax region notesBoldItalic matchgroup=notesBoldItalicDelimiter start="_\*\k\@=" end="\S\@<=\*_" keepend contains=@Spell' . s:concealends +execute 'syntax region notesBoldItalic matchgroup=notesBoldItalicDelimiter start="\*_\k\@=" end="\S\@<=_\*" keepend contains=@Spell' . s:concealends +syntax cluster notesInline add=notesBoldItalics +highlight notesBoldItalic term=bold,italic gui=bold,italic cterm=bold,italic + " Highlight domain names, URLs, e-mail addresses and filenames. {{{2 " FIXME This setting is lost once the user switches color scheme!