robotpy/cxxheaderparser

[PARSE BUG]: Line continuations are not considered

agatti opened this issue · 1 comments

agatti commented

Problem description

As per title, line continuations should make the parser skip all the following whitespace and consume the next token.

C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error)

static int \
                   variable;

#pragma (this \
        should \
        not \
        trigger \
        errors)

Hm.

It's likely this can be fixed by adjusting cxxheaderparser's lexer.