google / bamboo-soy

An intellij plugin supporting Closure Template language (Soy)
Apache License 2.0
48 stars 27 forks source link

Support for protobuf constructors. #201

Closed dikmax closed 4 years ago

dikmax commented 4 years ago

Soy allows not only create records, but also protos.

{namespace namespace}

{alias other.namespace.Proto}

{template .render}
  {let $record: record(id: 'id') /}
  {let $protoAlias: Proto(id: 'id') /}
  {let $protoFull: other.namespace.Proto(id: 'id') /}
{/template}

$record assignment is parsed, whereas other two show SoyTokenType.( or SoyTokenType.. expected, got ':'error on colon inside constructor.

crdev commented 4 years ago

Fixed in #194