From 56b0eb81c1fa037368ea8090dfc2f848592d661d Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 18 Jul 2022 20:35:53 +0200 Subject: [PATCH] Treat \r as a space. --- lang/basic/src/basic.lex | 1 + lang/basic/src/build.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/lang/basic/src/basic.lex b/lang/basic/src/basic.lex index 39d87e9ff..fc6dd34d6 100644 --- a/lang/basic/src/basic.lex +++ b/lang/basic/src/basic.lex @@ -572,6 +572,7 @@ int yylex(void) /* handle double operators */ case ' ': case '\t': + case '\r': cptr++; return(yylex()); case '&': diff --git a/lang/basic/src/build.lua b/lang/basic/src/build.lua index 3f09611fa..24f38da81 100644 --- a/lang/basic/src/build.lua +++ b/lang/basic/src/build.lua @@ -43,6 +43,7 @@ cprogram { "./symbols.h", "./util.h", "./yylexp.h", + "./basic.lex", "+llgen", "+tokentab_h", "h+emheaders",