From 7991cd8309cdd047b411d85bb516b15c9c65aa77 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 15 Feb 2008 05:25:47 +0000 Subject: [PATCH] Fix #134: Allow '@' as the first character of an identifier, like NASM does. svn path=/trunk/yasm/; revision=2038 --- modules/parsers/nasm/nasm-token.re | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/parsers/nasm/nasm-token.re b/modules/parsers/nasm/nasm-token.re index 453744be..d81e0ce6 100644 --- a/modules/parsers/nasm/nasm-token.re +++ b/modules/parsers/nasm/nasm-token.re @@ -323,7 +323,7 @@ scan: } /* identifier that may be a register, instruction, etc. */ - [a-zA-Z_?][a-zA-Z0-9_$#@~.?]* { + [a-zA-Z_?@][a-zA-Z0-9_$#@~.?]* { savech = s->tok[TOKLEN]; s->tok[TOKLEN] = '\0'; if (parser_nasm->state != INSTRUCTION) { -- 2.40.0