This commit is contained in:
Hackerpilot 2015-03-14 18:39:48 -07:00
parent ce128d8c62
commit 8a416f9849
4 changed files with 30 additions and 2 deletions

View File

@ -480,11 +480,25 @@ private:
else else
writeToken(); writeToken();
break; break;
case tok!"@":
writeToken();
if (currentIs(tok!"identifier"))
writeToken();
if (currentIs(tok!"("))
{
writeParens(false);
if (index < tokens.length && tokens[index - 1].line < tokens[index].line)
newline();
else
write(" ");
}
else if (index < tokens.length && !isOperator(tokens[index].type))
write(" ");
break;
case tok!"!": case tok!"!":
if (peekIs(tok!"is")) if (peekIs(tok!"is"))
write(" "); write(" ");
goto case; goto case;
case tok!"@":
case tok!"...": case tok!"...":
case tok!"[": case tok!"[":
case tok!"++": case tok!"++":

View File

@ -0,0 +1,5 @@
@Shortcut("[shift] + [tab]")
@MenuItem("Text/Decrease")
void textDecreaseIndent(BufferView v)
{
}

5
tests/issue0048.d Normal file
View File

@ -0,0 +1,5 @@
@Shortcut("[shift] + [tab]")
@MenuItem("Text/Decrease")
void textDecreaseIndent(BufferView v)
{
}

View File

@ -0,0 +1,4 @@
@Shortcut("[shift] + [tab]")
@MenuItem("Text/Decrease")
void textDecreaseIndent(BufferView v) {
}