diff --git a/CHANGELOG.md b/CHANGELOG.md index 7da18f6b..9cd0e6bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## dev branch / next version (1.x.x) +## version 1.5.1 (2019-03-06) + +- Fixed vanishing string literals at end of file ([#391](https://github.com/HaxeCheckstyle/haxe-formatter/issues/391)) + ## version 1.5.0 (2019-03-04) - Added `wrapping.opAddSubChain` ([#370](https://github.com/HaxeCheckstyle/haxe-formatter/issues/370)) diff --git a/haxelib.json b/haxelib.json index b02991af..91ca85bb 100644 --- a/haxelib.json +++ b/haxelib.json @@ -8,8 +8,8 @@ "style" ], "description": "A code formatter for Haxe", - "version": "1.5.0", - "releasenote": "Added wrapping for +/- chains and metadata parameter, added empty line options for macro classes, etc. - see CHANGELOG for details.", + "version": "1.5.1", + "releasenote": "Fixed vanishing string literals at end of file - see CHANGELOG for details.", "contributors": [ "AlexHaxe", "Gama11" diff --git a/package.json b/package.json index e32cf439..4c7b82e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "haxe-formatter", - "version": "1.5.0", + "version": "1.5.1", "description": "A code formatter for Haxe", "repository": { "type": "git", diff --git a/test/testcases/other/ends_with_string_literal.hxtest b/test/testcases/other/ends_with_string_literal.hxtest new file mode 100644 index 00000000..1258aae4 --- /dev/null +++ b/test/testcases/other/ends_with_string_literal.hxtest @@ -0,0 +1,11 @@ +{} + +--- + +class Main { + var foo = "bar" + +--- + +class Main { + var foo = "bar" diff --git a/test/testcases/other/ends_with_string_literal_2.hxtest b/test/testcases/other/ends_with_string_literal_2.hxtest new file mode 100644 index 00000000..8b848f76 --- /dev/null +++ b/test/testcases/other/ends_with_string_literal_2.hxtest @@ -0,0 +1,10 @@ +{} + +--- + +{"bar" + +--- + +{ + "bar" diff --git a/test/testcases/other/ends_with_string_literal_3.hxtest b/test/testcases/other/ends_with_string_literal_3.hxtest new file mode 100644 index 00000000..7196cfe5 --- /dev/null +++ b/test/testcases/other/ends_with_string_literal_3.hxtest @@ -0,0 +1,13 @@ +{} + +--- + +class Main { + public static function main() { + trace("foo" + +--- + +class Main { + public static function main() { + trace("foo"