From 16dbe0bc4427e7b92b34d156603e60a89fd5f6ff Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Wed, 14 Jan 2015 10:02:49 +0000 Subject: clang-format: [Java] Understand "import static". llvm-svn: 225965 --- clang/lib/Format/TokenAnnotator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Format') diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index b2f9bd2cc51..34d8835c763 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -621,7 +621,8 @@ public: CurrentToken->is(Keywords.kw_package)) || (Info && Info->getPPKeywordID() == tok::pp_import && CurrentToken->Next && - CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier))) { + CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier, + tok::kw_static))) { next(); parseIncludeDirective(); return LT_ImportStatement; -- cgit v1.2.3