fixed bug #1554178 - Compiler ignores next line after comment line ends with \
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4876 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f47023d9df
commit
94fc6745fa
3 changed files with 21 additions and 1 deletions
|
@ -287,7 +287,14 @@ int CEXEBuild::doParse(const char *str)
|
|||
|
||||
// keep waiting for more lines, if this line ends with a backslash
|
||||
if (str[0] && CharPrev(str,str+strlen(str))[0] == '\\')
|
||||
{
|
||||
line.parse((char*)m_linebuild.get());
|
||||
if (line.inComment())
|
||||
{
|
||||
warning_fl("comment contains line-continuation character, following line will be ignored");
|
||||
}
|
||||
return PS_OK;
|
||||
}
|
||||
|
||||
// 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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue