nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e42ec5f
)
misc/vim: nitdoc function search for a precise word
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 10 Mar 2015 19:58:00 +0000
(15:58 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 10 Mar 2015 20:02:13 +0000
(16:02 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
misc/vim/plugin/nit.vim
patch
|
blob
|
history
diff --git
a/misc/vim/plugin/nit.vim
b/misc/vim/plugin/nit.vim
index
046ab9f
..
f19224a
100644
(file)
--- a/
misc/vim/plugin/nit.vim
+++ b/
misc/vim/plugin/nit.vim
@@
-283,7
+283,7
@@
fun Nitdoc()
for line in readfile(path)
let words = split(line, '#====#', 1)
let name = get(words, 0, '')
- if name =~ '^' . word
+ if name =~ '^' . word . '\>'
" It fits our word, get long doc
let desc = get(words,3,'')
let desc = join(split(desc, '#nnnn#', 1), "\n")