2
0
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:
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
*.sln
*.vcxproj
# Visual Studio Code
.vscode/*
*.code-workspace
.history/*
.cache/*

View File

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