lexer: Support more options in lex_error_expecting_array().
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 1 Aug 2022 04:16:24 +0000 (21:16 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 1 Aug 2022 04:16:24 +0000 (21:16 -0700)
src/language/lexer/lexer.c

index 1fadf53b3079e9758bc4e13a5fc8bc36f1d0a046..47c019ec26dfe4208984bc23264aba69f9623aa6 100644 (file)
@@ -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);
     }