This commit is contained in:
Hackerpilot 2016-06-30 17:41:13 -07:00
parent e3bf26987b
commit 821f9439e4
4 changed files with 24 additions and 1 deletions

View file

@ -255,7 +255,7 @@ private:
else if (isBasicType(current.type))
{
writeToken();
if (currentIs(tok!"identifier") || isKeyword(current.type))
if (currentIs(tok!"identifier") || isKeyword(current.type) || inAsm)
write(" ");
}
else if (isOperator(current.type))

View file

@ -0,0 +1,9 @@
void stuff()
{
asm
{
int 80;
int 0b10;
int 0x80;
}
}

7
tests/issue0251.d Normal file
View file

@ -0,0 +1,7 @@
void stuff() {
asm {
int 80;
int 0b10;
int 0x80;
}
}

View file

@ -0,0 +1,7 @@
void stuff() {
asm {
int 80;
int 0b10;
int 0x80;
}
}