style: clean up the scanner and parser

* src/scan-gram.l: Formatting changes.
Add "missing" assertion for symmetry.
* src/parse-gram.y: Formatting changes.
This commit is contained in:
Akim Demaille
2018-11-10 12:55:27 +01:00
parent a91873a1b9
commit be737c3dd6
2 changed files with 10 additions and 9 deletions

View File

@@ -591,6 +591,7 @@ eqopt ([[:space:]]*=)?
<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>
{
\\[0-7]{1,3} {
verify (UCHAR_MAX < ULONG_MAX);
unsigned long c = strtoul (yytext + 1, NULL, 8);
if (!c || UCHAR_MAX < c)
complain (loc, complaint, _("invalid number after \\-escape: %s"),