From a09f683d7c853cd0cd3d27cd4aeab0a8ea0615dd Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sun, 6 Jul 2014 23:28:38 +0200 Subject: [PATCH] Add word boundary to Vim command highlighting (issue #59) --- autoload/xolox/notes.vim | 2 +- syntax/notes.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/xolox/notes.vim b/autoload/xolox/notes.vim index f606f07..b8080c2 100644 --- a/autoload/xolox/notes.vim +++ b/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(':p:h') diff --git a/syntax/notes.vim b/syntax/notes.vim index 237bac8..5547e49 100644 --- a/syntax/notes.vim +++ b/syntax/notes.vim @@ -1,6 +1,6 @@ " Vim syntax script " Author: Peter Odding -" 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\@\)/ contains=ALLBUT,@Spell syntax cluster notesInline add=notesVimCmd highlight def link notesVimCmd Special