indent 'from' again

This commit is contained in:
Kagami Sascha Rosylight
2016-02-19 15:58:00 +09:00
parent a9245c65f9
commit 294862c15e
2 changed files with 2 additions and 3 deletions

View File

@@ -477,7 +477,6 @@ namespace ts.formatting {
case SyntaxKind.CloseParenToken:
case SyntaxKind.ElseKeyword:
case SyntaxKind.WhileKeyword:
case SyntaxKind.FromKeyword:
case SyntaxKind.AtToken:
return indentation;
default:

View File

@@ -44,7 +44,7 @@ verify.currentLineContentIs(" y as yy, z");
goTo.marker("exportCloseBrace");
verify.currentLineContentIs("}");
goTo.marker("fromKeywordAutoformat");
verify.currentLineContentIs("from");
verify.currentLineContentIs(" from");
goTo.marker("fromKeywordIndent");
verify.indentationIs(4);
goTo.marker("exportDir");
@@ -62,7 +62,7 @@ verify.currentLineContentIs(" as yy,");
goTo.marker("importCloseBrace");
verify.currentLineContentIs("}");
goTo.marker("importDir");
verify.currentLineContentIs('from "wow"');
verify.currentLineContentIs(' from "wow"');
goTo.marker("formatOnEnter");
edit.insertLine('');