svn path=/trunk/yasm/; revision=2017
}
/* $0AA and 0xAA forms of hexidecimal number */
- (("$" digit) | "0x") hexdigit+ {
+ (("$" digit) | '0x') hexdigit+ {
savech = s->tok[TOKLEN];
s->tok[TOKLEN] = '\0';
- if (s->tok[1] == 'x')
+ if (s->tok[1] == 'x' || s->tok[1] == 'X')
/* skip 0 and x */
lvalp->intn = yasm_intnum_create_hex(TOK+2);
else
EXTRA_DIST += modules/parsers/nasm/tests/equcolon.hex
EXTRA_DIST += modules/parsers/nasm/tests/equlocal.asm
EXTRA_DIST += modules/parsers/nasm/tests/equlocal.hex
+EXTRA_DIST += modules/parsers/nasm/tests/hexconst.asm
+EXTRA_DIST += modules/parsers/nasm/tests/hexconst.hex
EXTRA_DIST += modules/parsers/nasm/tests/long.asm
EXTRA_DIST += modules/parsers/nasm/tests/long.hex
EXTRA_DIST += modules/parsers/nasm/tests/newsect.asm
--- /dev/null
+dd 0x500
+dd 0X500
--- /dev/null
+00
+05
+00
+00
+00
+05
+00
+00