File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,24 +52,24 @@ void parse(ParseEventHandler,
5252 Args... )
5353 (string input, int spaces_per_indent, string title, Args args) {
5454 import std.traits ;
55- ParseEventHandler parser = ParseEventHandler(args);
55+ ParseEventHandler handler = ParseEventHandler(args);
5656 // const initial_indent_level =
5757 int current_indent_level;
5858 // BitType current_bits;
5959 // BitType[] stack;
6060 int line_content_start_index;
6161 // Workwround for void not being a parameter type
6262 void emitBlockStart (string nodeContent) {
63- static if (is (ReturnType! (parser .start) == void )) {
64- parser .start(nodeContent);
63+ static if (is (ReturnType! (handler .start) == void )) {
64+ handler .start(nodeContent);
6565 deleStart();
66- } else deleStart(parser .start(nodeContent));
66+ } else deleStart(handler .start(nodeContent));
6767 }
6868 void emitBlockEnd () {
69- static if (is (ReturnType! (parser .end) == void )) {
70- parser .end();
69+ static if (is (ReturnType! (handler .end) == void )) {
70+ handler .end();
7171 deleEnd();
72- } else deleEnd(parser .end());
72+ } else deleEnd(handler .end());
7373 }
7474 emitBlockStart(title);
7575 for (int i = 0 ; i < input.length; ++ i) {
You can’t perform that action at this time.
0 commit comments