Files on an include statement are caught with a loop (result of capture is directive (or spacing after first iteration) + file). The same regular expression is used for handling syntax error.
Syntax error is "copied" from other language handlers where error management is distinct from normal processing. There, nothing was started yet and the offending strings can be put into $$frag which is empty. In Make case, error management is also normal exit (when everything has been eaten up). $$frag content must be preserved because it contains HTML highlighting for previous files.
Fix use operator .= instead of = in error processing.
Affects Make.pm since its first implementation (releases 1.10 and 1.2.0)
Log in to post a comment.