Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
youxkei committed Sep 9, 2013
2 parents 48c31e3 + 3819578 commit e86ddf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -2,6 +2,7 @@
https://github.com/youkei/ctpg/wiki

# History
- 2.2.1: Fix unintended fall-through
- 2.2.0: Fix error message line of undefined parser
- 2.1.0: Add comment feature to DSL
- 2.0.0: Full scratch
Expand Down
7 changes: 4 additions & 3 deletions src/ctpg.d
Expand Up @@ -5,8 +5,8 @@ import std.range : ElementEncodingType, isForwardRange, isRandomAccessRang
import std.traits : CommonType, EnumMembers, ReturnType, Unqual, isArray, isSomeChar, isSomeString;
import std.typecons : Tuple, tuple;

debug = ctpg;
debug = ctpgSuppressErrorMsg;
// debug = ctpg;
// debug = ctpgSuppressErrorMsg;

debug(ctpg) version(unittest)
{
Expand Down Expand Up @@ -2266,7 +2266,7 @@ debug(ctpg) unittest
}

return true;
};
}

static assert(test());
test();
Expand Down Expand Up @@ -4006,6 +4006,7 @@ Node expandSkip(Node node, Node skip = Node.init)

case TokenType.SKIP_WITH:
node.children[1] = node.children[1].expandSkip(skip);
break;

case TokenType.DEFINITIONS:
foreach(ref child; node.children)
Expand Down

0 comments on commit e86ddf3

Please sign in to comment.