Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Release notes:

1c/03, Lib 1.2.4:

Compiler: Patched over a bug with non-ASCII word separators.
The problem isn't really fixed, but it will no longer corrupt
your game text.

Unit test runner: (game over) and (game over $) are
now overridden in unit.dg, to enable testing of win
conditions.
Expand Down
6 changes: 3 additions & 3 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static int next_token(struct lexer *lexer, int parsemode) {
return 0;
}
}
if(strchr(STOPCHARS, ch)) {
if(ch < 0x80 && strchr(STOPCHARS, ch)) { // TODO - need to recognize high stopchars here ideally
buf[0] = ch;
buf[1] = 0;
lexer->kind = TOK_BAREWORD;
Expand Down Expand Up @@ -431,7 +431,7 @@ static int next_token(struct lexer *lexer, int parsemode) {
lexer->errorflag = 1;
return 0;
}
if(strchr(STOPCHARS, ch)) {
if(ch < 0x80 && strchr(STOPCHARS, ch)) { // TODO - and here (see above)
if(parsemode == PMODE_VALUE) {
report(LVL_ERR, line,
"Stop-character \"%c\" cannot appear inside a multi-character dictionary word.",
Expand All @@ -448,7 +448,7 @@ static int next_token(struct lexer *lexer, int parsemode) {
break;
}
}
if(strchr(STOPCHARS, ch)) {
if(ch < 0x80 && strchr(STOPCHARS, ch)) { // TODO - and here
if(parsemode == PMODE_VALUE) {
report(LVL_ERR, line,
"Stop-character \"%c\" cannot appear inside a multi-character dictionary word.",
Expand Down
Loading