Skip to content

Commit

Permalink
removed implicit unnamed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtoroq committed Nov 18, 2022
1 parent 85348f0 commit bb1269a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Xcst.Compiler/CodeGeneration/_template-rule.xcst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@

<variable name='modes' value='tmplModes
.Where(p => p != "#all")
.Concat(new[] { "#unnamed" })
.Distinct()'/>

<variable name='defaultMode' value='xcst_default_mode(el)'/>
Expand Down
4 changes: 4 additions & 0 deletions tests/Xcst.Tests/TemplateRules/ModeAll.c.xcst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
</output>
</c:template>

<c:template match='string s' mode='#default'>
<c:value-of value='s + " default"'/>
</c:template>

<c:template match='string s' mode='#all'>
<c:value-of value='s + " all"'/>
</c:template>
Expand Down

0 comments on commit bb1269a

Please sign in to comment.