trobro
trobro
Thanks for the suggestion. However, we try to avoid feature creep, so I don't see us implementing this.
I don't think we will ever again make any changes to the Hjson syntax definition, it is fairly set in stone by now. In Hjson triple quotes are used for...
True, poor reading by me.
@AlpyneDreams fair point, but existing Hjson files might already contain strings like this: ``` command: ''' cmake \ -Dhjson_DIR="C:/folderB/hjson-cpp/build64_VS15" \ -DQt5_DIR="C:/folderA/qt/lib/cmake/Qt5" \ -DCMAKE_GENERATOR_PLATFORM=x64 \ .. ''' ``` I would not...
I no longer have any objections, implementing this for single or double quoted strings only should be fine. Not for multiline and not for quoteless strings. I would support PR:s...
@isinyaaa would be great if you have time to implement for hjson-py! @dqsully what do you think of this?
Great, I'll do a PR for hjson-cpp. Yes would only work in `""` and `''` strings, but not multiline or unquoted strings. That way there's no breaking change. Ending an...
...though now that I look at our syntax specification (https://hjson.github.io/syntax.html) I see that it does allow line feeds in `""` and `''` strings. I had not thought of that before,...
I agree, `\r\n` should be supported and removed if escaped, but an escaped `\r` without `\n` should be an error.
@AlpyneDreams I had a closer look at the JSON5 specification: it allows `\x`, `\v` and `\0` in strings. And for any unknown escape sequence JSON5 will just remove the backslash...