mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 13:20:07 +03:00
Fix #54
This commit is contained in:
parent
2cf73576f4
commit
c522170983
1 changed files with 17 additions and 1 deletions
|
@ -1683,7 +1683,23 @@ class ClassFour(A, B) if (someTest()) : Super {}}c;
|
|||
if (peekIs(TokenType.template_))
|
||||
node.mixinTemplateDeclaration = parseMixinTemplateDeclaration();
|
||||
else
|
||||
node.mixinDeclaration = parseMixinDeclaration();
|
||||
{
|
||||
auto b = setBookmark();
|
||||
advance();
|
||||
auto t = peekPastParens();
|
||||
if (t !is null && t.type == TokenType.semicolon)
|
||||
{
|
||||
goToBookmark(b);
|
||||
node.mixinDeclaration = parseMixinDeclaration();
|
||||
}
|
||||
else
|
||||
{
|
||||
goToBookmark(b);
|
||||
error("Declaration expected");
|
||||
advance();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case pragma_:
|
||||
node.pragmaDeclaration = parsePragmaDeclaration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue