Bug fix for #943 .

After some troubleshooting, I find that the bug was introduced by old-versioned StringTemplate4. There is an issue about this: https://github.com/antlr/stringtemplate4/issues/94 I upgrade StringTemplate4 to the latest version and add a UT to cover this.

Thank you for taking time to contribute this pull request! You might have already read the [contributor guide][1], but as a reminder, please make sure to:

  • Sign the contributor license agreement
  • Rebase your changes on the latest main branch and squash your commits
  • Add/Update unit tests as needed
  • Run a build and make sure all tests pass prior to submission

Comment From: markpollack

Thanks for the update!

merged in 5417d19d9aea8c6873fc47c2d3d7f5c0c650a618