|
@@ -715,6 +715,13 @@ void UnwrappedLineParser::readTokenWithJavaScriptASI() {
|
|
|
return;
|
|
|
|
|
|
bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous);
|
|
|
+ if (PreviousMustBeValue && Line && Line->Tokens.size() > 1) {
|
|
|
+ // If the token before the previous one is an '@', the previous token is an
|
|
|
+ // annotation and can precede another identifier/value.
|
|
|
+ const FormatToken *PrePrevious = std::next(Line->Tokens.rend(), 2)->Tok;
|
|
|
+ if (PrePrevious->is(tok::at))
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (Next->is(tok::exclaim) && PreviousMustBeValue)
|
|
|
addUnwrappedLine();
|
|
|
bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next);
|