diff options
author | Max Christian Pohle | 2021-10-10 12:44:18 +0200 |
---|---|---|
committer | Max Christian Pohle | 2021-10-10 12:44:46 +0200 |
commit | f9d13d8450ce640cc1efe725ef0b45f626fa38b8 (patch) | |
tree | 5434fe97b9cce03fad2a82fd26eff7ee4458b726 /plugin | |
parent | 6ef2556ae020a8d04ee6e3b75d6df82bb2d9f6e1 (diff) | |
download | vim-under-the-cursor-f9d13d8450ce640cc1efe725ef0b45f626fa38b8.tar.bz2 vim-under-the-cursor-f9d13d8450ce640cc1efe725ef0b45f626fa38b8.zip |
Added end-of-word to syntax group
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-under-the-cursor.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/vim-under-the-cursor.vim b/plugin/vim-under-the-cursor.vim index 403164a..66e661d 100644 --- a/plugin/vim-under-the-cursor.vim +++ b/plugin/vim-under-the-cursor.vim | |||
@@ -43,7 +43,7 @@ function! HighlightWordUnderCursor() | |||
43 | endif | 43 | endif |
44 | 44 | ||
45 | exec 'syntax clear ' . l:color | 45 | exec 'syntax clear ' . l:color |
46 | exec 'syntax match ' . l:color . ' /\#' . l:q . '/' | 46 | exec 'syntax match ' . l:color . ' /\#' . l:q . '\>/' |
47 | else | 47 | else |
48 | silent! call matchadd('Underline', '\<'.l:currentword.'\>', -1, w:m1) | 48 | silent! call matchadd('Underline', '\<'.l:currentword.'\>', -1, w:m1) |
49 | endif | 49 | endif |