Skip to content

Commit

Permalink
Support for ; after scoping endings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bausshf committed May 22, 2016
1 parent d84b9af commit 3453046
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/templates/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ auto parseTemplate(string content) {
current = new Part;
current.currentGrammar = grammars.get('{', null);
current._content = "}";

if (afterChar == ';') {
current._content ~= ";";
i++;
}

parts ~= current;

current = new Part;
Expand All @@ -161,6 +167,12 @@ auto parseTemplate(string content) {
current = new Part;
current.currentGrammar = grammars.get('{', null);
current._content = "]";

if (afterChar == ';') {
current._content ~= ";";
i++;
}

parts ~= current;

current = new Part;
Expand All @@ -173,6 +185,12 @@ auto parseTemplate(string content) {
current = new Part;
current.currentGrammar = grammars.get('{', null);
current._content = ")";

if (afterChar == ';') {
current._content ~= ";";
i++;
}

parts ~= current;

current = new Part;
Expand Down

0 comments on commit 3453046

Please sign in to comment.