X-Git-Url: http://nitlanguage.org diff --git a/misc/vim/plugin/nit.vim b/misc/vim/plugin/nit.vim index 046ab9f..f19224a 100644 --- 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")