fixed escaped quotes in macro parameters
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5225 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
babab14623
commit
0865910e56
1 changed files with 5 additions and 1 deletions
|
@ -298,7 +298,11 @@ int CEXEBuild::doParse(const char *str)
|
|||
}
|
||||
|
||||
// parse before checking if the line should be ignored, so block comments won't be missed
|
||||
res=line.parse((char*)m_linebuild.get(),!strnicmp((char*)m_linebuild.get(),"!define",7));
|
||||
|
||||
// escaped quotes should be ignored for compile time commands that set defines
|
||||
// because defines can be inserted in commands at a later stage
|
||||
bool ignore_escaping = (!strnicmp((char*)m_linebuild.get(),"!define",7) || !strnicmp((char*)m_linebuild.get(),"!insertmacro",12));
|
||||
res=line.parse((char*)m_linebuild.get(), ignore_escaping);
|
||||
|
||||
inside_comment = line.inCommentBlock();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue