Including a comment in a `@template/value` causes an unexpected template error
- Dominant language
- Go
- Stars
- 1.9k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
**What steps did you take:**
Adding a comment after setting a value for a node...
```yaml
list_with_a_map: #@ some_list #! including this comment fails
```
**What happened:**
Results in an error:
```
- got identifier, want ')'
yaml.yml:1 | list_with_a_map: #@ some_list #! including this comment fails
yaml.yml:? | __ytt_tpl2_end_ctx(None) (generated)
```
**What did you expect:**
For the comment to simply be ignored.
**Anything else you would like to add:**
- reported [#carvel ~ 2021-07-16](https://kubernetes.slack.com/archives/CH8KCCKA5/p1626440295463700) by @larssb
- reported [#carvel ~ 2022-05-31](https://kubernetes.slack.com/archives/CH8KCCKA5/p1652477858157579) by @voor
**Environment:**
- ytt version (use `ytt --version`): v0.40.1
- OS (e.g. from `/etc/os-release`): *
---
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
Contributor guide
Assessment
This issue has not been assessed yet.