projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37cbc94
)
fixup for scan error refactoring
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 4 Jul 2021 03:00:36 +0000
(20:00 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 4 Jul 2021 03:00:36 +0000
(20:00 -0700)
src/language/lexer/scan.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/scan.c
b/src/language/lexer/scan.c
index 611a60ef63e90354e885d1ad3f631ac6cb045ec5..141e1e0f1522de638c7ed2bae5de6e78341ba146 100644
(file)
--- a/
src/language/lexer/scan.c
+++ b/
src/language/lexer/scan.c
@@
-435,32
+435,32
@@
scan_token_to_error (const struct token *token)
{
case SCAN_BAD_HEX_LENGTH:
return xasprintf (_("String of hex digits has %d characters, which "
{
case SCAN_BAD_HEX_LENGTH:
return xasprintf (_("String of hex digits has %d characters, which "
- "is not a multiple of 2"), (int) token->number);
+ "is not a multiple of 2
.
"), (int) token->number);
case SCAN_BAD_HEX_DIGIT:
case SCAN_BAD_UNICODE_DIGIT:
case SCAN_BAD_HEX_DIGIT:
case SCAN_BAD_UNICODE_DIGIT:
- return xasprintf (_("`%c' is not a valid hex digit"),
+ return xasprintf (_("`%c' is not a valid hex digit
.
"),
(int) token->number);
case SCAN_BAD_UNICODE_LENGTH:
return xasprintf (_("Unicode string contains %d bytes, which is "
(int) token->number);
case SCAN_BAD_UNICODE_LENGTH:
return xasprintf (_("Unicode string contains %d bytes, which is "
- "not in the valid range of 1 to 8 bytes"),
+ "not in the valid range of 1 to 8 bytes
.
"),
(int) token->number);
case SCAN_BAD_UNICODE_CODE_POINT:
(int) token->number);
case SCAN_BAD_UNICODE_CODE_POINT:
- return xasprintf (_("U+%04X is not a valid Unicode code point"),
+ return xasprintf (_("U+%04X is not a valid Unicode code point
.
"),
(int) token->number);
case SCAN_EXPECTED_QUOTE:
(int) token->number);
case SCAN_EXPECTED_QUOTE:
- return xasprintf (_("Unterminated string constant"));
+ return xasprintf (_("Unterminated string constant
.
"));
case SCAN_EXPECTED_EXPONENT:
case SCAN_EXPECTED_EXPONENT:
- return xasprintf (_("Missing exponent following `%s'"),
+ return xasprintf (_("Missing exponent following `%s'
.
"),
token->string.string);
case SCAN_UNEXPECTED_CHAR:
char c_name[16];
token->string.string);
case SCAN_UNEXPECTED_CHAR:
char c_name[16];
- return xasprintf (_("Bad character %s in input"),
+ return xasprintf (_("Bad character %s in input
.
"),
uc_name (token->number, c_name));
}
uc_name (token->number, c_name));
}