File tree Expand file tree Collapse file tree
parser/src/main/scala/play/twirl/parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ import scala.util.parsing.input.OffsetPosition
5757 * {{{
5858 * parser : comment? whitespace? ('@' parentheses+)? templateContent
5959 * templateContent : (importExpression | localMember | template | mixed)*
60- * templateOrLocalMemberDeclaration : '@' (('lazy' whitespaceNoBreak+)? 'val' whitespaceNoBreak+)? identifier squareBrackets? parentheses*
60+ * templateOrLocalMemberDeclaration : '@' ((( 'lazy' whitespaceNoBreak+)? 'val' whitespaceNoBreak+) | ('var' whitespaceNoBreak+) )? identifier squareBrackets? parentheses*
6161 * localMember : templateOrLocalMemberDeclaration (' ' | '\t')* '=' (' ' | '\t') scalaBlock
6262 * template : templateOrLocalMemberDeclaration (' ' | '\t')* '=' (' ' | '\t') '{' templateContent '}'
6363 * mixed : (comment | scalaBlockDisplayed | forExpression | ifExpression | matchExpOrSafeExpOrExpr | caseExpression | plain) | ('{' mixed* '}')
You can’t perform that action at this time.
0 commit comments