diff --git a/autoload/xolox/notes.vim b/autoload/xolox/notes.vim index bf2a634..904947e 100644 --- a/autoload/xolox/notes.vim +++ b/autoload/xolox/notes.vim @@ -6,7 +6,7 @@ " Note: This file is encoded in UTF-8 including a byte order mark so " that Vim loads the script using the right encoding transparently. -let g:xolox#notes#version = '0.15.4' +let g:xolox#notes#version = '0.15.5' function! xolox#notes#shortcut() " {{{1 " The "note:" pseudo protocol is just a shortcut for the :Note command. diff --git a/syntax/notes.vim b/syntax/notes.vim index f5ad5ef..7b20045 100644 --- a/syntax/notes.vim +++ b/syntax/notes.vim @@ -1,6 +1,6 @@ " Vim syntax script " Author: Peter Odding -" Last Change: July 23, 2011 +" Last Change: November 25, 2011 " URL: http://peterodding.com/code/vim/notes/ " Note: This file is encoded in UTF-8 including a byte order mark so @@ -37,13 +37,16 @@ highlight def link notesListBullet Comment syntax match notesListNumber /^\s*\zs\d\+[[:punct:]]\?\ze\s/ highlight def link notesListNumber Comment -" Highlight quoted fragments (inside single quotes). {{{2 +" Highlight quoted fragments. {{{2 if xolox#notes#unicode_enabled() - syntax match notesQuotedFragment /‘.\{-}’/ + syntax match notesDoubleQuoted /“.\{-}”/ + syntax match notesSingleQuoted /‘.\{-}’/ else - syntax match notesQuotedFragment /`.\{-}'/ + syntax match notesDoubleQuoted /".\{-}"/ + syntax match notesSingleQuoted /`.\{-}'/ endif -highlight def link notesQuotedFragment Special +highlight def link notesSingleQuoted Special +highlight def link notesDoubleQuoted String " Highlight text emphasized in italic font. {{{2 if has('conceal')