Skip to content

Commit

Permalink
Try to resolve issue #62: Apostrophes are turned into curly quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 16, 2014
1 parent e91ed34 commit cb5c3cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion autoload/xolox/notes.vim
Expand Up @@ -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')

Expand Down
10 changes: 5 additions & 5 deletions syntax/notes.vim
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cb5c3cc

Please sign in to comment.