File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 152152 return null ;
153153
154154 case "param-def" :
155- if ( match = stream . match ( / ^ ( [ \w ] + ) (? = : ) / ) ) {
156- state . variables = prepend ( state . variables , match [ 1 ] ) ;
155+ if ( match = stream . match ( / ^ \w + / ) ) {
156+ state . variables = prepend ( state . variables , match [ 0 ] ) ;
157157 state . soyState . pop ( ) ;
158158 state . soyState . push ( "param-type" ) ;
159159 return "def" ;
Original file line number Diff line number Diff line change 9292 ' [tag&bracket </][tag div][tag&bracket >]' ,
9393 '[keyword {/template}]' ,
9494 '' ) ;
95+
96+ MT ( 'allow-missing-colon-in-@param' ,
97+ '[keyword {template] [def .foo][keyword }]' ,
98+ ' [keyword {@param] [def showThing] [variable-3 bool][keyword }]' ,
99+ ' [keyword {if] [variable-2 $showThing][keyword }]' ,
100+ ' Yo!' ,
101+ ' [keyword {/if}]' ,
102+ '[keyword {/template}]' ,
103+ '' ) ;
95104} ) ( ) ;
You can’t perform that action at this time.
0 commit comments