Properly handle unnecessary semicolons

Now fixes #45.
This commit is contained in:
Jonathan Müller 2018-03-19 21:12:40 +01:00
commit 003207361a
3 changed files with 19 additions and 8 deletions

View file

@ -37,6 +37,9 @@ namespace {}
/// namespace f{
/// }
namespace e::f {}
// unnecessary semicolon at end of file
;
)";
auto file = parse({}, "cpp_namespace.cpp", code);