Extend variable range to include attributes

Fixes #27.
This commit is contained in:
Jonathan Müller 2018-12-18 16:40:59 +01:00
commit 51c2fc6569
2 changed files with 7 additions and 1 deletions

View file

@ -248,6 +248,8 @@ struct [[inline_type]] inline_type
[[field]] int field;
}
[[s]] s;
int t [[t]];
)";
auto file = parse({}, "cpp_attribute__matching.cpp", code);
@ -275,5 +277,5 @@ struct [[inline_type]] inline_type
return true;
});
REQUIRE(count == 43u);
REQUIRE(count == 44u);
}