engine: common: add quote symbol escaping support (#411)

This commit is contained in:
Bohdan Shulyar 2021-04-04 22:03:02 +03:00 committed by GitHub
parent f5e400de69
commit ddc4d76668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

6
.gitignore vendored
View File

@ -326,3 +326,9 @@ __pycache__
*.vcproj *.vcproj
*.sln *.sln
*.vcxproj *.vcxproj
# Visual Studio Code
.vscode/*
*.code-workspace
.history/*
.cache/*

View File

@ -521,6 +521,12 @@ skipwhite:
} }
data++; data++;
if( c == '\\' && *data == '"' )
{
token[len++] = (byte)*data++;
continue;
}
if( c == '\"' ) if( c == '\"' )
{ {
token[len] = 0; token[len] = 0;