diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-12-13 18:26:24 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-12-14 05:10:31 +0100 |
commit | 465a47d46b0916387a5642cddb1fe7379e8e20e0 (patch) | |
tree | 419a221ce540b025939b056a8fc0e547a37c4979 /src | |
parent | 953a95695a882ccc203e34cd6bf42585419b27e2 (diff) | |
download | bison-465a47d46b0916387a5642cddb1fe7379e8e20e0.tar.gz |
parser: warn about string literals in Yacc mode
* src/scan-gram.l (scan_integer): Warn.
* tests/input.at (Yacc warnings on symbols): Check.
Diffstat (limited to 'src')
-rw-r--r-- | src/scan-gram.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scan-gram.l b/src/scan-gram.l index 07192f2b..5fe0fc4e 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -521,6 +521,8 @@ eqopt ([[:space:]]*=)? STRING_FINISH; BEGIN INITIAL; loc->start = token_start; + complain (loc, Wyacc, + _("POSIX Yacc does not support string literals")); RETURN_VALUE (STRING, last_string); } <<EOF>> unexpected_eof (token_start, "\""); |