Permalink
Browse files

Ignore punctuation after URLs

  • Loading branch information...
1 parent b83bbc1 commit 72ea4edd8f9c3cf8fe4062fe4d5d857a71cbbe65 @xolox committed Dec 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 syntax.vim
View
@@ -58,7 +58,7 @@ syntax match notesTextURL @\<www\.\(\S*\w\)\+[/?#]\?@
syntax cluster notesInline add=notesTextURL
highlight def link notesTextURL Underlined
if has('conceal')
- syntax region notesFullURL matchgroup=notesURLScheme start=@\<\(mailto:\|javascript:\|\w\{3,}://\)@ end=/\(\s\|$\)\@=/ concealends
+ syntax region notesFullURL matchgroup=notesURLScheme start=@\<\(mailto:\|javascript:\|\w\{3,}://\)@ end=/\([[:punct:]]\s\|\s\|$\)\@=/ concealends
highlight def link notesURLScheme notesFullURL
else
syntax match notesFullURL @\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+[/?#]\?@

0 comments on commit 72ea4ed

Please sign in to comment.