You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Verify that tokens with newlines have correct indentation
61
-
{input: "{// Foo\nBar", want: "{ // Foo\n\tBar\n"}, // Bar must be indented.
62
-
{input: "{\n/*\n* foo\n*/", want: "{\n\t/*\n\t* foo\n\t*/\n"}, // Comment must be indented, with one extra space.
63
-
{input: "{\n /* \n * foo\n*/", want: "{\n\t/*\n\t * foo\n\t*/\n"}, // the least indented line is the anchor. It gets alligned to the actual indentation level. All other lines are alligned relative to it
64
-
{input: "{\n/*\n * foo\n * some prefix*/", want: "{\n\t/*\n\t * foo\n\t * some prefix*/\n"},
61
+
{input: "{// Foo\nBar}", want: "{ // Foo\n\tBar}\n"}, // Bar must be indented.
62
+
{input: "{\n/*\n* foo\n*/}", want: "{\n\t/*\n\t* foo\n\t*/}\n"}, // Comment must be indented, with one extra space.
63
+
{input: "{\n /* \n * foo\n*/}", want: "{\n\t/*\n\t * foo\n\t*/}\n"}, // the least indented line is the anchor. It gets alligned to the actual indentation level. All other lines are alligned relative to it
64
+
{input: "{\n/*\n * foo\n * some prefix*/}", want: "{\n\t/*\n\t * foo\n\t * some prefix*/}\n"},
{input: "{\n /*function f() {\n var integer x;\n\n log(x);\n }*/\n", want: "{\n\t/*function f() {\n\t var integer x;\n\n\t log(x);\n\t}*/\n"}, // including an empty line
{input: "{\n /*function f() {\n var integer x;\n\n log(x);\n }*/}\n", want: "{\n\t/*function f() {\n\t var integer x;\n\n\t log(x);\n\t}*/}\n"}, // including an empty line
0 commit comments