Skip to content

Commit

Permalink
fixed vanishing string literals at end of file (#391)
Browse files Browse the repository at this point in the history
* fixed vanishing string literals at end of file
  • Loading branch information
AlexHaxe authored Mar 6, 2019
1 parent 5cc6aad commit 1ee1f21
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haxe-formatter",
"version": "1.5.0",
"version": "1.5.1",
"description": "A code formatter for Haxe",
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions test/testcases/other/ends_with_string_literal.hxtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{}

---

class Main {
var foo = "bar"

---

class Main {
var foo = "bar"
10 changes: 10 additions & 0 deletions test/testcases/other/ends_with_string_literal_2.hxtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{}

---

{"bar"

---

{
"bar"
13 changes: 13 additions & 0 deletions test/testcases/other/ends_with_string_literal_3.hxtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{}

---

class Main {
public static function main() {
trace("foo"

---

class Main {
public static function main() {
trace("foo"

0 comments on commit 1ee1f21

Please sign in to comment.