Parsing error when escaped inside a string
Closed this issue · 1 comments
Trying to use this for my build tool, I'm getting some errors when the parser tries to deal with Paths such as when parsing:
"appbuild"
{
"appid" "111111111"
"desc" "Description you want"
"buildoutput" "D:\SteamSDK\tools\ContentBuilder\output"
"contentroot" ""
"setlive" "internaltest"
"preview" "0"
"local" ""
"depots"
{
"111111111" "D:\SteamSDK\tools\ContentBuilder\scripts\generic_depot.vdf"
}
}
This is what it's returning
"appbuild"
{
"appid" "111111111"
"desc" "Description you want"
"buildoutput" "D:\\SteamSDK\tools\\ContentBuilder\\output"
"contentroot" ""
"setlive" "internaltest"
"preview" "0"
"local" ""
"depots"
{
"111111111" "D:\\SteamSDK\tools\\ContentBuilder\\scripts\\generic_depot.vdf"
}
}
Notice D:\SteamSDK\tools\ContentBuilder\scripts\generic_depot.vdf
Where \tools it's only giving one backslash because \t is an escape command.
Duplicate of #38