Skip to content

Commit cb5c3cc

Browse files
committed
Try to resolve issue #62: Apostrophes are turned into curly quotes
1 parent e91ed34 commit cb5c3cc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

autoload/xolox/notes.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
" Note: This file is encoded in UTF-8 including a byte order mark so
77
" that Vim loads the script using the right encoding transparently.
88

9-
let g:xolox#notes#version = '0.23.5'
9+
let g:xolox#notes#version = '0.23.6'
1010
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
1111
let s:scriptdir = expand('<sfile>:p:h')
1212

syntax/notes.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim syntax script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: July 16, 2013
3+
" Last Change: June 16, 2014
44
" URL: http://peterodding.com/code/vim/notes/
55

66
" Note: This file is encoded in UTF-8 including a byte order mark so
@@ -39,11 +39,11 @@ highlight def link notesListNumber Comment
3939

4040
" Highlight quoted fragments. {{{2
4141
if xolox#notes#unicode_enabled()
42-
syntax match notesDoubleQuoted /“.\{-}”/
43-
syntax match notesSingleQuoted /‘.\{-}’/
42+
syntax match notesDoubleQuoted /\w\@<!“.\{-}”\w\@!/
43+
syntax match notesSingleQuoted /\w\@<!‘.\{-}’\w\@!/
4444
else
45-
syntax match notesDoubleQuoted /".\{-}"/
46-
syntax match notesSingleQuoted /`.\{-}'/
45+
syntax match notesDoubleQuoted /\w\@<!".\{-}"\w\@!/
46+
syntax match notesSingleQuoted /\w\@<!`.\{-}'\w\@!/
4747
endif
4848
highlight def link notesSingleQuoted Special
4949
highlight def link notesDoubleQuoted String

0 commit comments

Comments
 (0)