|
@@ -2570,7 +2570,7 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line,
|
|
Keywords.kw_interface, Keywords.kw_type, tok::kw_static,
|
|
Keywords.kw_interface, Keywords.kw_type, tok::kw_static,
|
|
tok::kw_public, tok::kw_private, tok::kw_protected,
|
|
tok::kw_public, tok::kw_private, tok::kw_protected,
|
|
Keywords.kw_abstract, Keywords.kw_get, Keywords.kw_set))
|
|
Keywords.kw_abstract, Keywords.kw_get, Keywords.kw_set))
|
|
- return false; // Otherwise a semicolon is inserted.
|
|
|
|
|
|
+ return false; // Otherwise automatic semicolon insertion would trigger.
|
|
if (Left.is(TT_JsFatArrow) && Right.is(tok::l_brace))
|
|
if (Left.is(TT_JsFatArrow) && Right.is(tok::l_brace))
|
|
return false;
|
|
return false;
|
|
if (Left.is(TT_JsTypeColon))
|
|
if (Left.is(TT_JsTypeColon))
|