You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using SUCC I often stumble across the issue, that it has been a few months and I forgot that one has to escape # inside strings.
Knowledge background:
To my knowledge there are 3 types of strings:
One line: <key>: <value>
One line quoted: <key>: "<value>"
Block:
<key>: """
<value>
"""
All three can be at any point be stopped with # to start a comment. And \# will place a # into the content.
Problem:
I understand that comments can and should be possible/escapable in one-line string values and block-string values.
But they just make no sense in quoted one line string. As after a comment, there is no possible way for the closing " to be added. Hence it is basically destroying the value of the string.
One could argue, that the opening " would be part of the message - but then that should be escaped, else it would be misleading.
Suggestion:
If I am with my understanding correct, and the simple-quoted string is indeed limited to a single line.
Then my proposal is, to ignore # inside of such string (as it makes no sense).
The text was updated successfully, but these errors were encountered:
Hm, this is interesting, thanks for bringing it up. I guess my only concern is that I think # escaping should behave consistently. It feels weird and unintuitive to have different rules for it in different situations.
When using SUCC I often stumble across the issue, that it has been a few months and I forgot that one has to escape
#
inside strings.Knowledge background:
To my knowledge there are 3 types of strings:
<key>: <value>
<key>: "<value>"
All three can be at any point be stopped with
#
to start a comment. And\#
will place a#
into the content.Problem:
I understand that comments can and should be possible/escapable in one-line string values and block-string values.
But they just make no sense in quoted one line string. As after a comment, there is no possible way for the closing
"
to be added. Hence it is basically destroying the value of the string.One could argue, that the opening
"
would be part of the message - but then that should be escaped, else it would be misleading.Suggestion:
If I am with my understanding correct, and the simple-quoted string is indeed limited to a single line.
Then my proposal is, to ignore
#
inside of such string (as it makes no sense).The text was updated successfully, but these errors were encountered: