Skip to content

Commit

Permalink
fixed conditional after PClose
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Oct 3, 2024
1 parent bbd3561 commit 4cc97e3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 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.16 (2024-10-03)

- Fixed conditionals after PClose

## version 1.2.15 (2024-10-02)

- Fixed operator keyword used in Haxe 3 code
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 operator keyword - see CHANGELOG for details",
"version": "1.2.15",
"releasenote": "fixed conditionals after PClose - see CHANGELOG for details",
"version": "1.2.16",
"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.15",
"version": "1.2.16",
"description": "TokenTree library used by haxe-checkstyle, haxe-formatter and haxe-languageserver",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/tokentree/walk/WalkPOpen.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package tokentree.walk;

import tokentree.walk.WalkSharp.WalkSharpConsts;

class WalkPOpen {
public static function walkPOpen(stream:TokenStream, parent:TokenTree, walkTrailingComments:Bool = true):TokenTree {
var pOpen:TokenTree = stream.consumeTokenDef(POpen);
Expand All @@ -16,6 +18,8 @@ class WalkPOpen {
var arrow:TokenTree = stream.consumeToken();
pOpen.addChild(arrow);
WalkBlock.walkBlock(stream, arrow);
case Sharp(WalkSharpConsts.IF):
WalkSharp.walkSharp(stream, parent, WalkStatement.walkStatement);
default:
}
}
Expand Down

0 comments on commit 4cc97e3

Please sign in to comment.