grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

CPP Unicode identifier

Open TwoOfTwelve opened this issue 1 year ago • 0 comments
trafficstars

If I understand the CPP14 documentation correctly identifiers can contain (nearly) all Unicode letters. Meaning the following code is valid CPP (compiles with gcc):

int main() {
        int ÔŒλ = 1;
}

This code cannot be parsed with the cpp grammar, because identifiers can only contain Unicode escape sequences.

TwoOfTwelve avatar Jan 30 '24 15:01 TwoOfTwelve