Skip to content

Commit c6e9ee2

Browse files
authored
Merge pull request #1096 from mkurz/parser_javadoc
Add var to Parser scaladoc
2 parents dddb7e7 + 2efc474 commit c6e9ee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parser/src/main/scala/play/twirl/parser/TwirlParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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* '}')

0 commit comments

Comments
 (0)