commit | f737215288e5d63dd6564d63f69569266467f7ee | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Thu Jul 02 14:14:04 2015 +0000 |
committer | Daniel Jasper <djasper@google.com> | Thu Jul 02 14:14:04 2015 +0000 |
tree | 922f1f31e564a7973e311cfe6ed94455e49d72cb | |
parent | 8f4699a8c6f5c95ac294d83fcc84e394082b3733 [diff] [blame] |
clang-format: [JS] Skip comments when applying the regex-literal heuristic llvm-svn: 241264
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 40a2a1f..ef5901e 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -636,6 +636,8 @@ verifyFormat("var regex =\n" " /\"/;", getGoogleJSStyleWithColumns(15)); + verifyFormat("var regex = //\n" + " /a/;"); } TEST_F(FormatTestJS, RegexLiteralModifiers) {