mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 2e3511180210 (bug 1066827)
This commit is contained in:
parent
dde7851d32
commit
4278f207a7
@ -3875,18 +3875,13 @@ CheckModuleProcessingDirectives(ModuleCompiler &m)
|
||||
{
|
||||
TokenStream &ts = m.parser().tokenStream;
|
||||
while (true) {
|
||||
bool matched;
|
||||
if (!ts.matchToken(&matched, TOK_STRING))
|
||||
return false;
|
||||
if (!matched)
|
||||
if (!ts.matchToken(TOK_STRING))
|
||||
return true;
|
||||
|
||||
if (!IsIgnoredDirectiveName(m.cx(), ts.currentToken().atom()))
|
||||
return m.fail(nullptr, "unsupported processing directive");
|
||||
|
||||
if (!ts.matchToken(&matched, TOK_SEMI))
|
||||
return false;
|
||||
if (!matched)
|
||||
if (!ts.matchToken(TOK_SEMI))
|
||||
return m.fail(nullptr, "expected semicolon after string literal");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user