projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
76d259f
)
lexer: Support more options in lex_error_expecting_array().
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 1 Aug 2022 04:16:24 +0000
(21:16 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 1 Aug 2022 04:16:24 +0000
(21:16 -0700)
src/language/lexer/lexer.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/lexer.c
b/src/language/lexer/lexer.c
index 1fadf53b3079e9758bc4e13a5fc8bc36f1d0a046..47c019ec26dfe4208984bc23264aba69f9623aa6 100644
(file)
--- a/
src/language/lexer/lexer.c
+++ b/
src/language/lexer/lexer.c
@@
-530,6
+530,12
@@
lex_error_expecting_array (struct lexer *lexer, const char **options, size_t n)
options[5], options[6], options[7]);
break;
options[5], options[6], options[7]);
break;
+ case 9:
+ lex_error (lexer, _("expecting %s, %s, %s, %s, %s, %s, %s, %s, or %s"),
+ options[0], options[1], options[2], options[3], options[4],
+ options[5], options[6], options[7], options[8]);
+ break;
+
default:
lex_error (lexer, NULL);
}
default:
lex_error (lexer, NULL);
}