I'm having trouble getting Vim to load all syntax file matches.
Specifically, I am attempting to use the mason.vim syntax, which
includes perl.vim, and I have an additional perl.vim installed in
~/.vim/syntax. I've also tested a more general case, without a ~/.vimrc
and an empty ~/.vim directory (save for the test files).
According to the documenation for syn-include, all matching files are
loaded:
When {file-name} is an absolute path (starts with "/", "c:", "$VAR"
or "<sfile>") that file is sourced. When it is a relative path
(e.g., "syntax/pod.vim") the file is searched for in 'runtimepath'.
All matching files are loaded. Using a relative path is
recommended, because it allows a user to replace the included file
with his own version, without replacing the file that does the ":syn
include".
This appears to be true in version 6.3.82, which I have installed on one
system. However, the builds of version 7 I use will only load the
first matching file. I've veriified this with the latest version from
Subversion (revision 254).
Is this a known bug, an unknown bug, or something I'm doing wrongly?
Thanks.
--
Chris Grau