Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add word boundary to Vim command highlighting (issue #59)

  • Loading branch information...
commit a09f683d7c853cd0cd3d27cd4aeab0a8ea0615dd 1 parent e88a8d1
@xolox authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  autoload/xolox/notes.vim
  2. +2 −2 syntax/notes.vim
View
2  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.25'
+let g:xolox#notes#version = '0.25.1'
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
let s:scriptdir = expand('<sfile>:p:h')
View
4 syntax/notes.vim
@@ -1,6 +1,6 @@
" Vim syntax script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 16, 2014
+" Last Change: July 6, 2014
" URL: http://peterodding.com/code/vim/notes/
" Note: This file is encoded in UTF-8 including a byte order mark so
@@ -110,7 +110,7 @@ highlight def link notesDoneMarker Question
highlight def link notesInProgress Directory
" Highlight Vim command names in :this notation. {{{2
-syntax match notesVimCmd /:\w\+\(!\|\>\)/ contains=ALLBUT,@Spell
+syntax match notesVimCmd /\w\@<!:\w\+\(!\|\>\)/ contains=ALLBUT,@Spell
syntax cluster notesInline add=notesVimCmd
highlight def link notesVimCmd Special
Please sign in to comment.
Something went wrong with that request. Please try again.