Merge pull request #118 from callumenator/lambda-attr-fix

Allow function attributes in lambda expression
This commit is contained in:
Hackerpilot 2014-02-21 20:17:10 -08:00
commit 20d90c412a
1 changed files with 2 additions and 0 deletions

View File

@ -4149,6 +4149,8 @@ q{(int a, ...)
auto b = setBookmark();
advance(); // function | delegate
skipParens();
while (isAttribute())
parseAttribute();
if (currentIs(tok!"=>"))
{
goToBookmark(b);