X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fformats.c;h=4b5a2b208ace70f69c896ba4c4bd65941196fa5d;hb=22c3b7ae0807d55ac6714d1f7ca9c5a5be6cc515;hp=718344acc63ed1037787c1ab6823507b7e2ae8dd;hpb=cac0d191514553fede1858bf3dceee9073e60c1a;p=pspp diff --git a/src/language/dictionary/formats.c b/src/language/dictionary/formats.c index 718344acc6..4b5a2b208a 100644 --- a/src/language/dictionary/formats.c +++ b/src/language/dictionary/formats.c @@ -73,6 +73,8 @@ internal_cmd_formats (struct lexer *lexer, struct dataset *ds, int which) int width; size_t i; + lex_match (lexer, T_SLASH); + if (lex_token (lexer) == T_ENDCMD) break; @@ -82,7 +84,7 @@ internal_cmd_formats (struct lexer *lexer, struct dataset *ds, int which) if (!lex_match (lexer, T_LPAREN)) { - msg (SE, _("`(' expected after variable list.")); + lex_error_expecting (lexer, "`('", NULL_SENTINEL); goto fail; } if (!parse_format_specifier (lexer, &f) @@ -92,7 +94,7 @@ internal_cmd_formats (struct lexer *lexer, struct dataset *ds, int which) if (!lex_match (lexer, T_RPAREN)) { - msg (SE, _("`)' expected after output format.")); + lex_error_expecting (lexer, "`)'", NULL_SENTINEL); goto fail; }