• Orgad Shaneh's avatar
    C++: Fix preprocessing of uncontinued line-escaping · 67caa75c
    Orgad Shaneh authored
    The following snippet demonstrates the problem:
    
    --- snip ---
    // comment \
    
    #include <something.h>
    ...
    
    class Foo
    {
        ...
    };
    --- snap ---
    
    If there are >=9 empty/preprocessor lines, the preprocessed source
    becomes
    // comment \
    # 12 "file.cpp"
    ...
    
    The lexer considers the line marker as a continued C++ comment, and
    highlighting is broken
    
    Change-Id: I30a2fc7d19b279316e9273697179c90d81099573
    Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
    67caa75c
tst_preprocessor.cpp 55 KB