You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if name[0] in '<"':
assert_parse(name[-1] in '>"', token)
I think that if the compiler enables to do so, so it shouldn't fail the parsing. Even though it's a weird way of writing code...
I would check if it's endswith('\') as well.
A naive and simple solution could be:
if name[0] in '<"':
if name.endswith('\\'):
name = name[:-1].strip()
assert_parse(name[-1] in '>"', token)
The text was updated successfully, but these errors were encountered:
First of all - Awesome project!
I noticed my code has a line like this:
#include <set>\
Which compile but fails in your parser here - https://github.com/myint/cppclean/blob/master/cpp/ast.py#L786
I think that if the compiler enables to do so, so it shouldn't fail the parsing. Even though it's a weird way of writing code...
I would check if it's endswith('\') as well.
A naive and simple solution could be:
The text was updated successfully, but these errors were encountered: