Skip to content

Support comments at the end of keybind config line #2699

Closed Answered by mitchellh
tekumara asked this question in Ideas and Issue Triage
Discussion options

You must be logged in to vote

From the README:

# Comments start with a `#` and are only valid on their own line.

This is intentional and documented.

A brief why: if we get into trailing comments, we also have to get into quoted strings and ways to include # in a value. Right now, our parsing is extremely simple because we can simply read the full line as-is. It's not a ton of complexity to parse a quoted line ignoring a trailing comment but its more complexity nonetheless.

I'm open to adding this complexity eventually but want to see more support for it. For the time being, only a handful of people out of thousands of testers have raised this concern.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tekumara
Comment options

Answer selected by tekumara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants