Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try to resolve issue #62: Apostrophes are turned into curly quotes

  • Loading branch information...
commit cb5c3cc48b6e02bb63b772d8aee150394cc11ee6 1 parent e91ed34
Peter Odding authored
Showing with 6 additions and 6 deletions.
  1. +1 −1  autoload/xolox/notes.vim
  2. +5 −5 syntax/notes.vim
2  autoload/xolox/notes.vim
View
@@ -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.23.5'
+let g:xolox#notes#version = '0.23.6'
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
let s:scriptdir = expand('<sfile>:p:h')
10 syntax/notes.vim
View
@@ -1,6 +1,6 @@
" Vim syntax script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: July 16, 2013
+" Last Change: June 16, 2014
" URL: http://peterodding.com/code/vim/notes/
" Note: This file is encoded in UTF-8 including a byte order mark so
@@ -39,11 +39,11 @@ highlight def link notesListNumber Comment
" Highlight quoted fragments. {{{2
if xolox#notes#unicode_enabled()
- syntax match notesDoubleQuoted /“.\{-}”/
- syntax match notesSingleQuoted /‘.\{-}’/
+ syntax match notesDoubleQuoted /\w\@<!“.\{-}”\w\@!/
+ syntax match notesSingleQuoted /\w\@<!‘.\{-}’\w\@!/
else
- syntax match notesDoubleQuoted /".\{-}"/
- syntax match notesSingleQuoted /`.\{-}'/
+ syntax match notesDoubleQuoted /\w\@<!".\{-}"\w\@!/
+ syntax match notesSingleQuoted /\w\@<!`.\{-}'\w\@!/
endif
highlight def link notesSingleQuoted Special
highlight def link notesDoubleQuoted String
Please sign in to comment.
Something went wrong with that request. Please try again.