token->token.string.string);
break;
- case SCAN_UNEXPECTED_DOT:
- lex_get_error (src, _("Unexpected `.' in middle of command"));
- break;
-
case SCAN_UNEXPECTED_CHAR:
{
char c_name[16];
ss_alloc_substring (&token->string, s);
return SCAN_DONE;
- case SEG_UNEXPECTED_DOT:
- token->type = SCAN_UNEXPECTED_DOT;
- return SCAN_DONE;
-
case SEG_UNEXPECTED_CHAR:
return scan_unexpected_char (&s, token);
}
\
SCAN_TYPE(EXPECTED_QUOTE) \
SCAN_TYPE(EXPECTED_EXPONENT) \
- SCAN_TYPE(UNEXPECTED_DOT) \
SCAN_TYPE(UNEXPECTED_CHAR) \
\
SCAN_TYPE(SKIP)
case SEG_END:
case SEG_EXPECTED_QUOTE:
case SEG_EXPECTED_EXPONENT:
- case SEG_UNEXPECTED_DOT:
case SEG_UNEXPECTED_CHAR:
id[0] = '\0';
return ofs + retval;
s->substate = SS_START_OF_COMMAND;
}
else
- *type = SEG_UNEXPECTED_DOT;
+ *type = SEG_PUNCT;
return 1;
case '0': case '1': case '2': case '3': case '4':
\
SEG_TYPE(EXPECTED_QUOTE) \
SEG_TYPE(EXPECTED_EXPONENT) \
- SEG_TYPE(UNEXPECTED_DOT) \
SEG_TYPE(UNEXPECTED_CHAR)
/* Types of segments. */
lexer.sps:9.1-9.2: error: Syntax error at `1e': Missing exponent following `1e'.
-lexer.sps:9.4: error: Syntax error at `.': Unexpected `.' in middle of command.
-
-lexer.sps:9: error: Unknown command `x'.
+lexer.sps:9.4: error: Syntax error at `.': expecting command name.
lexer.sps:10.1: error: Syntax error at `^': Bad character `^' in input.
lexer.sps:2: error: LIST: LIST is allowed only after the active dataset has been defined.
-lexer.sps:2.5: error: LIST: Syntax error at `.': Unexpected `.' in middle of command.
-
lexer.sps:2.6: error: LIST: Syntax error at `...': Bad character U+0000 in input.
])
AT_CLEANUP
SKIP
ID "#.#"
SKIP
-UNEXPECTED_DOT
+MACRO_PUNCT "."
ID "x"
SKIP
MACRO_PUNCT "_"