mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #251
This commit is contained in:
parent
e3bf26987b
commit
821f9439e4
4 changed files with 24 additions and 1 deletions
|
@ -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))
|
||||
|
|
9
tests/allman/issue0251.d.ref
Normal file
9
tests/allman/issue0251.d.ref
Normal file
|
@ -0,0 +1,9 @@
|
|||
void stuff()
|
||||
{
|
||||
asm
|
||||
{
|
||||
int 80;
|
||||
int 0b10;
|
||||
int 0x80;
|
||||
}
|
||||
}
|
7
tests/issue0251.d
Normal file
7
tests/issue0251.d
Normal file
|
@ -0,0 +1,7 @@
|
|||
void stuff() {
|
||||
asm {
|
||||
int 80;
|
||||
int 0b10;
|
||||
int 0x80;
|
||||
}
|
||||
}
|
7
tests/otbs/issue0251.d.ref
Normal file
7
tests/otbs/issue0251.d.ref
Normal file
|
@ -0,0 +1,7 @@
|
|||
void stuff() {
|
||||
asm {
|
||||
int 80;
|
||||
int 0b10;
|
||||
int 0x80;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue