From 711aa760a8e58468302fc12e07c77b8f5c424476 Mon Sep 17 00:00:00 2001 From: Kartik Shenoy Date: Sat, 15 Nov 2014 17:35:12 -0700 Subject: [PATCH 1/2] 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! From d1293ca3c4fbaceecef24fdc7dd0627df3bd6f2e Mon Sep 17 00:00:00 2001 From: Sencer Selcuk Date: Thu, 20 Nov 2014 12:08:05 -0500 Subject: [PATCH 2/2] TODO, XXX and FIXME are different things They should be highlighted differently. --- syntax/notes.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/notes.vim b/syntax/notes.vim index 6088017..d014108 100644 --- a/syntax/notes.vim +++ b/syntax/notes.vim @@ -120,9 +120,9 @@ syntax match notesFixMe /\/ syntax match notesInProgress /\<\(CURRENT\|INPROGRESS\|STARTED\|WIP\)\>/ syntax match notesDoneItem /^\(\s\+\).*\.*\(\n\1\s.*\)*/ contains=@notesInline syntax match notesDoneMarker /\/ containedin=notesDoneItem -highlight def link notesTodo WarningMsg +highlight def link notesTodo TODO highlight def link notesXXX WarningMsg -highlight def link notesFixMe WarningMsg +highlight def link notesFixMe Error highlight def link notesDoneItem Comment highlight def link notesDoneMarker Question highlight def link notesInProgress Directory