Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error when escaped inside a string #37

Closed
elamhut opened this issue May 11, 2021 · 1 comment
Closed

Parsing error when escaped inside a string #37

elamhut opened this issue May 11, 2021 · 1 comment

Comments

@elamhut
Copy link

elamhut commented May 11, 2021

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.

@rossengeorgiev
Copy link
Member

rossengeorgiev commented May 12, 2021

Duplicate of #38

@rossengeorgiev rossengeorgiev marked this as a duplicate of #28 May 12, 2021
@rossengeorgiev rossengeorgiev marked this as a duplicate of #38 May 12, 2021
@rossengeorgiev rossengeorgiev marked this as not a duplicate of #28 May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants