Skip to content

Cross-line string literals cause parsing errors in shader initalization function #193

@byteFishr

Description

@byteFishr

Description:
when parsing the demo function, cross-line string literals like the following cause parsing errors, resulting in error nodes in the AST or parsing output:

const char* s = 
"int a;\
int b;\
void main(){\
c = a;\
d = b;\
}";

the issue occurs because the string spans multiple lines and is split by backslash() continuation characters. while this is valid C syntax, the parser appears to not correctly handle such multi-line string literals,leading to incorrect parsing results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions