修复switch...case模板标签嵌套解析错误

This commit is contained in:
Haotong Lin
2015-12-17 13:28:28 +08:00
parent 1481732c33
commit 66f433330d
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ class Cx extends Taglib
'elseif' => ['attr' => 'condition', 'close' => 0],
'else' => ['attr' => '', 'close' => 0],
'switch' => ['attr' => 'name', 'level' => 2],
'case' => ['attr' => 'value,break'],
'case' => ['attr' => 'value,break', 'level' => 2],
'default' => ['attr' => '', 'close' => 0],
'compare' => ['attr' => 'name,value,type', 'level' => 3, 'alias' => 'eq,equal,notequal,neq,gt,lt,egt,elt,heq,nheq'],
'range' => ['attr' => 'name,value,type', 'level' => 3, 'alias' => 'in,notin,between,notbetween'],