I read this question about make grammar but still have one question:
Is it allowed to have completely empty lines as part of command sequence of a target? This Makefile (with TAB instead of spaces as indent, and the 3rd line containing no TAB character.)
boo:
echo "foo"
echo "bar"
vim marks the first echo as syntax group makeCommands
and the second echo (after the empty line) as no group at all (so no syntax highlighting). Is this "legal" Make? Is this a mistake in vim's interpretation of Make?
Blank lines are allowed in target rules by POSIX:
lines that begin with a
<tab>
, are makefile command lines to be executed to update the target. The first non-empty line that does not begin with a<tab>
or#
shall begin a new entry.