Skip to content

Commit a09f683

Browse files
committed
Add word boundary to Vim command highlighting (issue #59)
1 parent e88a8d1 commit a09f683

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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.25'
9+
let g:xolox#notes#version = '0.25.1'
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: 2 additions & 2 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: June 16, 2014
3+
" Last Change: July 6, 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
@@ -110,7 +110,7 @@ highlight def link notesDoneMarker Question
110110
highlight def link notesInProgress Directory
111111

112112
" Highlight Vim command names in :this notation. {{{2
113-
syntax match notesVimCmd /:\w\+\(!\|\>\)/ contains=ALLBUT,@Spell
113+
syntax match notesVimCmd /\w\@<!:\w\+\(!\|\>\)/ contains=ALLBUT,@Spell
114114
syntax cluster notesInline add=notesVimCmd
115115
highlight def link notesVimCmd Special
116116

0 commit comments

Comments
 (0)