vickenty / lang-c

Lightweight C parser for Rust
Apache License 2.0
202 stars 30 forks source link

Wide character literals produce syntax errors #42

Closed imihajlow closed 1 year ago

imihajlow commented 1 year ago

Example code:

int foo(void) {
    return L'a';
}

I get the following:

syntax error: unexpected token at "1.c" line 2 column 13, expected '!=', '"', '%', '%=', '&', '&&', '&=', '(', '*', '*=', '+', '++', '+=', ',', '-', '--', '-=', '->', '.', '/', '/=', ';', '<', '<<', '<<=', '<=', '=', '==', '>', '>=', '>>', '>>=', '?', '[', '[_a-zA-Z0-9]', '^', '^=', '|', '|=', '||'
vickenty commented 1 year ago

Thanks, I think this should be fixed with 5313f9d3b643b3e0c4c6b77ac1c855bab0622e69 and 0.15.1.