From 54b7655daba78bf766e5cfc3ef16c957bf4bbc2c Mon Sep 17 00:00:00 2001 From: Yang Su <676185+yangsu@users.noreply.github.com> Date: Tue, 7 May 2019 03:30:07 -0700 Subject: [PATCH] Improved multiline closure comment detection (#6070) --- CHANGELOG.unreleased.md | 35 +++++++++++++++++++ src/language-js/needs-parens.js | 11 ++++-- .../__snapshots__/jsfmt.spec.js.snap | 16 +++++++++ .../closure-compiler-type-cast.js | 8 +++++ 4 files changed, 67 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 40ef23defba1..f1d5aeb9e11d 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -151,4 +151,39 @@ Examples: {{/if}} e {{/if}} + +* JavaScript: Improved multiline closure compiler typecast comment detection ([#6070] by [@yangsu]) + + Previously, multiline closure compiler typecast comments with lines that + start with \* weren't flagged correctly and the subsequent parenthesis were + stripped. Prettier master fixes this issue. + +