mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
engine: common: add quote symbol escaping support (#411)
This commit is contained in:
parent
f5e400de69
commit
ddc4d76668
6
.gitignore
vendored
6
.gitignore
vendored
@ -326,3 +326,9 @@ __pycache__
|
||||
*.vcproj
|
||||
*.sln
|
||||
*.vcxproj
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/*
|
||||
*.code-workspace
|
||||
.history/*
|
||||
.cache/*
|
@ -521,6 +521,12 @@ skipwhite:
|
||||
}
|
||||
data++;
|
||||
|
||||
if( c == '\\' && *data == '"' )
|
||||
{
|
||||
token[len++] = (byte)*data++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if( c == '\"' )
|
||||
{
|
||||
token[len] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user