Skip to content

Commit

Permalink
fixed nested conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Oct 3, 2024
1 parent 4cc97e3 commit 075abf0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 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.2.17 (2024-10-04)

- Fixed nested conditionals

## version 1.2.16 (2024-10-03)

- Fixed conditionals after PClose
Expand Down
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"contributors": [
"AlexHaxe"
],
"releasenote": "fixed conditionals after PClose - see CHANGELOG for details",
"version": "1.2.16",
"releasenote": "fixed nested conditionals - see CHANGELOG for details",
"version": "1.2.17",
"url": "https://github.com/HaxeCheckstyle/tokentree",
"dependencies": {}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tokentree",
"version": "1.2.16",
"version": "1.2.17",
"description": "TokenTree library used by haxe-checkstyle, haxe-formatter and haxe-languageserver",
"repository": {
"type": "git",
Expand Down
5 changes: 4 additions & 1 deletion src/tokentree/walk/WalkPOpen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ class WalkPOpen {
pOpen.addChild(arrow);
WalkBlock.walkBlock(stream, arrow);
case Sharp(WalkSharpConsts.IF):
WalkSharp.walkSharp(stream, parent, WalkStatement.walkStatement);
switch (parent.tok) {
case Sharp(WalkSharpConsts.IF):
default: WalkSharp.walkSharp(stream, parent, WalkStatement.walkStatement);
}
default:
}
}
Expand Down

0 comments on commit 075abf0

Please sign in to comment.