drop kw_module from ASI protection block
authorMartin Probst <martin@probst.io>
Thu, 10 Nov 2016 16:21:04 +0000 (16:21 +0000)
committerMartin Probst <martin@probst.io>
Thu, 10 Nov 2016 16:21:04 +0000 (16:21 +0000)
llvm-svn: 286469

clang/lib/Format/TokenAnnotator.cpp

index 628659e..893e5fa 100644 (file)
@@ -2426,10 +2426,10 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line,
   } else if (Style.Language == FormatStyle::LK_JavaScript) {
     const FormatToken *NonComment = Right.getPreviousNonComment();
     if (Left.isOneOf(tok::kw_return, tok::kw_continue, tok::kw_break,
-                     tok::kw_throw, Keywords.kw_module) ||
+                     tok::kw_throw) ||
         (NonComment &&
          NonComment->isOneOf(tok::kw_return, tok::kw_continue, tok::kw_break,
-                             tok::kw_throw, Keywords.kw_module)))
+                             tok::kw_throw)))
       return false; // Otherwise a semicolon is inserted.
     if (Left.is(TT_JsFatArrow) && Right.is(tok::l_brace))
       return false;