From 31cf175fe3eccfd8212363590eb89d3480178edd Mon Sep 17 00:00:00 2001 From: AlexHaxe Date: Tue, 10 Sep 2019 14:22:09 +0200 Subject: [PATCH] Prepare v1.9.0 (#527) * prepare_v1.9.0 * added testcase for postfix exclamation mark, fixes #516 --- CHANGELOG.md | 3 +++ ...l_wrapping_with_postfix_exclamation.hxtest | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test/testcases/wrapping/issue_516_literal_wrapping_with_postfix_exclamation.hxtest diff --git a/CHANGELOG.md b/CHANGELOG.md index dcf68d6f..527cc79d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## dev branch / next version (1.x.x) +## version 1.9.0 (2019-09-10) + - Added `fixedZeroIncrease` and `fixedZeroIncreaseBlocks` policies to `indentation.conditionalPolicy` ([#514](https://github.com/HaxeCheckstyle/haxe-formatter/issues/514)) - Added `alignedNestedIncrease` policies to `indentation.conditionalPolicy`, fixes [#519](https://github.com/HaxeCheckstyle/haxe-formatter/issues/519) ([#520](https://github.com/HaxeCheckstyle/haxe-formatter/issues/520)) - Added range to format API ([#524](https://github.com/HaxeCheckstyle/haxe-formatter/issues/524)) @@ -9,6 +11,7 @@ - Fixed conditionals in return types, fixes [#446](https://github.com/HaxeCheckstyle/haxe-formatter/issues/446) ([#515](https://github.com/HaxeCheckstyle/haxe-formatter/issues/515)) - Fixed null pointer issues in MarkWhitespace ([#521](https://github.com/HaxeCheckstyle/haxe-formatter/issues/521)) - Fixed path handling in Hashlink 1.1 ([#521](https://github.com/HaxeCheckstyle/haxe-formatter/issues/521)) +- Fixed postfix exclamation mark, fixes [#516](https://github.com/HaxeCheckstyle/haxe-formatter/issues/516) ([#527](https://github.com/HaxeCheckstyle/haxe-formatter/issues/527)) ## version 1.8.1 (2019-06-27) diff --git a/test/testcases/wrapping/issue_516_literal_wrapping_with_postfix_exclamation.hxtest b/test/testcases/wrapping/issue_516_literal_wrapping_with_postfix_exclamation.hxtest new file mode 100644 index 00000000..9abea6ae --- /dev/null +++ b/test/testcases/wrapping/issue_516_literal_wrapping_with_postfix_exclamation.hxtest @@ -0,0 +1,23 @@ +{} + +--- + +class Main { + static function main() { + var object = { + a: b, + c: d!.e + }; + } +} + +--- + +class Main { + static function main() { + var object = { + a: b, + c: d!.e + }; + } +}