Here's an excerpt from a file where aoe(file)
should be treated like an import:
["Cyclone" 37 {"Move +0" "Attack +0, aoe(aoes/tri-melee.rkt)" "Consume Air: Instead, Attack +1, aoe(aoes/ring1-melee.rkt)"}]
I have an include
setting to find "aoe" files (and other files) that works:
let &l:include = '\v(import-monsters "\zs[^"]*\ze"|aoe\(\zs[^)]*\ze\))'
However, it only finds the first file on the line (:checkpath!
includes aoes/tri-melee.rkt
but not aoes/ring1-melee.rkt
). If I split the line between the two aoe()
bits, both are found.
- Is this the usual function of
include
? It's not documented as only processing the first match in a line, as far as I can tell, though:help include-search
strongly hints that this is the case. - Is there a way to check for includes more than once on a line? I could imagine using a more permissive pattern like
aoes(.*)
and then usingincludeexpr
to extract multiple matches, but I don't thinkincludeexpr
is supposed to return a list (nor can I find documentation for what happens if it does).