I have the a rule with an action defined as follows:
metric_expr
: metric=NAME ('AS' label=NAME)? {System.out.println(String.format("%s: %s", metric, label));}
;
I got the error says:
error(146): com\foo\bar\PRL.g:65:54: invalid StringTemplate % shorthand syntax: '%s'
Anyone know how to workaround this?