as: Don't accept - in label names - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit 4a43d3a6ce5978d490c58ae2a5e15fc186961d12 (DIR) parent b4a14737671031ef9d57de428ba3c1a1618c644a (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Sat, 10 Feb 2024 22:57:21 +0100 as: Don't accept - in label names If - is accepted in label names then it is not possible to use it for substraction and expressions like: LABEL-1 have to be written like: LABEL - 1 Diffstat: M src/cmd/as/parser.c | 2 -- 1 file changed, 0 insertions(+), 2 deletions(-) --- (DIR) diff --git a/src/cmd/as/parser.c b/src/cmd/as/parser.c @@ -71,7 +71,6 @@ iden(void) switch (c) { case '\'': case '_': - case '-': case '.': case '$': continue; @@ -353,7 +352,6 @@ validlabel(char *name) continue; switch (c) { case '_': - case '-': case '.': case '$': continue;