Improve variadic token workaround
This commit is contained in:
parent
c2b86d1cad
commit
a91746c145
1 changed files with 5 additions and 0 deletions
|
|
@ -243,6 +243,11 @@ namespace
|
||||||
{
|
{
|
||||||
// variadic tokens in unnamed parameter not included
|
// variadic tokens in unnamed parameter not included
|
||||||
end = get_next_location(tu, file, end, 3);
|
end = get_next_location(tu, file, end, 3);
|
||||||
|
if (token_after_is(tu, file, cur, end, "."))
|
||||||
|
// extra whitespace, so bump again
|
||||||
|
// this should all go away once I redid the whole token thing...
|
||||||
|
end = get_next_location(tu, file, end, 1);
|
||||||
|
|
||||||
DEBUG_ASSERT(token_after_is(tu, file, cur, end, ">")
|
DEBUG_ASSERT(token_after_is(tu, file, cur, end, ">")
|
||||||
|| token_after_is(tu, file, cur, end, ","),
|
|| token_after_is(tu, file, cur, end, ","),
|
||||||
detail::parse_error_handler{}, cur,
|
detail::parse_error_handler{}, cur,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue