From 8f83a9072dd10dd18be8c2231e0e1c9dcbc4981d Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 9 May 2014 10:28:58 +0000 Subject: clang-format: [JS] Allow up to 3 empty lines in Google's JS style. llvm-svn: 208404 --- clang/lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Format') diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index d72556debd4..4a66d7aa956 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -339,7 +339,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { if (Language == FormatStyle::LK_JavaScript) { GoogleStyle.BreakBeforeTernaryOperators = false; - GoogleStyle.MaxEmptyLinesToKeep = 2; + GoogleStyle.MaxEmptyLinesToKeep = 3; GoogleStyle.SpacesInContainerLiterals = false; } else if (Language == FormatStyle::LK_Proto) { GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; -- cgit v1.2.3