Warn about <<Prev
This commit is contained in:
parent
33a4d5705a
commit
0a9cd4aba1
|
|
@ -97,6 +97,7 @@ sub next_token_internal (*) {
|
|||
# FIXME the following (the [<\s] part) is an unreliable HACK :-(
|
||||
} elsif ($readahead =~ /^(?:[^<]|<[<\s])+/s) { # non-space normal text
|
||||
($kind, $it, $readahead) = (KIND_TEXT, $&, $');
|
||||
warn "Warning: Unescaped < in line $lc: $it\n" if $it =~ /</s;
|
||||
} else { # tag/declaration/processing instruction
|
||||
my $ok_p = 0;
|
||||
for (;;) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue