-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: adjustments for integrating handlebars rules
- hash-parameters - subexpressions wip: adjustments for integrating handlebars rules - hash-parameters - subexpressions wip: update tests some minor adaptions wip: fix test cases wip: try to honor path expressions correctly wip: fix tests and refactor language definition wip: update keywords, remove debug output wip: {{else}} is a keyword and not a helper call wip: fix test for else-variants - else is not a built-in (except for the keyword {{else}}) wip: fix hashes and number literals, add string literals - the hash-value must start after the equals-sign - number and string modes must be in front of identifiers, because they are a subset wip: make "as" in block-parameters a "keyword" fixup: revert tests to old tests from origin/master fixup: adjust expected test results for failing tests add else variant tests
- Loading branch information
Showing
13 changed files
with
148 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
test/markup/handlebars/block-expression-variants-in-param.expect.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<span class="hljs-comment">{{!-- a comment {{expression}} --}}</span><span class="xml"> </span><span class="hljs-template-variable">{{expression}}</span><span class="xml"> | ||
<span class="hljs-comment">{{!-- a comment {{expression}} --}}</span><span class="xml"> </span><span class="hljs-template-variable">{{<span class="hljs-name">expression</span>}}</span><span class="xml"> | ||
|
||
</span><span class="hljs-comment">{{! a simple comment }}</span><span class="xml"> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<span class="xml">text | ||
|
||
</span><span class="hljs-template-variable">{{ "lite]'ral}}segment" }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">"lite]'ral}}segment"</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ 'lite]"ral}}segment' }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">'lite]"ral}}segment'</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ [lite"'ral}}segment] }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">[lite"'ral}}segment]</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abc "lite]'ral}}segment" }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abc</span> <span class="hljs-string">"lite]'ral}}segment"</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abc 'lite]"ral}}segment' }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abc</span> <span class="hljs-string">'lite]"ral}}segment'</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abc [lite"'ral}}segment] }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abc</span> [lite"'ral}}segment] }}</span><span class="xml"> text | ||
|
||
|
||
</span><span class="hljs-template-variable">{{ abcd.[lite"'ral}}segment] }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abcd.[lite"'ral}}segment]</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abcd."lite]'ral}}segment" }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abcd."lite]'ral}}segment"</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abcd.'lite]"ral}}segment' }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abcd.'lite]"ral}}segment'</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abcd.''}}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abcd.''</span>}}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abcd."" }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abcd.""</span> }}</span><span class="xml"> text | ||
|
||
</span><span class="hljs-template-variable">{{ abcd.[] }}</span><span class="xml"> text | ||
</span><span class="hljs-template-variable">{{ <span class="hljs-name">abcd.[]</span> }}</span><span class="xml"> text | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<span class="hljs-template-variable">{{> partial}}</span><span class="xml"> | ||
<span class="hljs-template-variable">{{> <span class="hljs-name"><span class="hljs-builtin-name">partial</span></span>}}</span><span class="xml"> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<span class="hljs-template-tag">{{{{#<span class="hljs-name">raw</span>}}}}</span><span class="xml"> {{verbatim}} content </span><span class="hljs-template-tag">{{{{/<span class="hljs-name">raw</span>}}}}</span><span class="xml"> </span><span class="hljs-template-variable">{{var}}</span><span class="xml"> | ||
<span class="hljs-template-tag">{{{{#<span class="hljs-name">raw</span>}}}}</span><span class="xml"> {{verbatim}} content </span><span class="hljs-template-tag">{{{{/<span class="hljs-name">raw</span>}}}}</span><span class="xml"> </span><span class="hljs-template-variable">{{<span class="hljs-name">var</span>}}</span><span class="xml"> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<span class="hljs-template-variable">{{abc}}</span><span class="xml"> | ||
<span class="hljs-template-variable">{{<span class="hljs-name">abc</span>}}</span><span class="xml"> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<span class="hljs-template-variable">{{helper (subExpression 1 2)}}</span><span class="xml"> | ||
<span class="hljs-template-variable">{{<span class="hljs-name">helper</span> (<span class="hljs-name">subExpression</span> <span class="hljs-number">1</span> <span class="hljs-number">2</span>)}}</span><span class="xml"> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<span class="hljs-template-variable">{{{raw}}}</span><span class="xml"> | ||
<span class="hljs-template-variable">{{{<span class="hljs-name">raw</span>}}}</span><span class="xml"> | ||
</span> |