Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 9f7e889968481f85d03986264ff9bf746b27a342..beb4d094d0ae0b8cea59fba4f3683227ad46c3fd 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -120,6 +120,7 @@ TEST(ScanHTMLEndComments) { |
// whitespace, even a multiline-comment containing a newline). |
// This was not the case if it occurred before the first real token |
// in the input. |
+ // clang-format off |
const char* tests[] = { |
// Before first real token. |
"--> is eol-comment\nvar y = 37;\n", |
@@ -129,6 +130,8 @@ TEST(ScanHTMLEndComments) { |
// After first real token. |
"var x = 42;\n--> is eol-comment\nvar y = 37;\n", |
"var x = 42;\n/* precomment */ --> is eol-comment\nvar y = 37;\n", |
+ "x/* precomment\n */ --> is eol-comment\nvar y = 37;\n", |
+ "var x = 42; /* precomment\n */ --> is eol-comment\nvar y = 37;\n", |
nickie
2016/07/04 08:27:10
According to the spec [1], the end of a real multi
|
NULL |
}; |
@@ -136,11 +139,10 @@ TEST(ScanHTMLEndComments) { |
"x --> is eol-comment\nvar y = 37;\n", |
"\"\\n\" --> is eol-comment\nvar y = 37;\n", |
"x/* precomment */ --> is eol-comment\nvar y = 37;\n", |
- "x/* precomment\n */ --> is eol-comment\nvar y = 37;\n", |
"var x = 42; --> is eol-comment\nvar y = 37;\n", |
- "var x = 42; /* precomment\n */ --> is eol-comment\nvar y = 37;\n", |
NULL |
}; |
+ // clang-format on |
// Parser/Scanner needs a stack limit. |
CcTest::i_isolate()->stack_guard()->SetStackLimit( |