engine: common: add quote symbol escaping support (#411)
This commit is contained in:
parent
f5e400de69
commit
ddc4d76668
2 changed files with 12 additions and 0 deletions
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…
Add table
Reference in a new issue