From 936819a1b90f2618bb3f86730189cf2895948ba0 Mon Sep 17 00:00:00 2001 From: seyko Date: Tue, 5 Apr 2016 13:05:09 +0300 Subject: utf8 in identifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit made like in pcc (pcc.ludd.ltu.se/ftp/pub/pcc-docs/pcc-utf8-ver3.pdf) We treat all chars with high bit set as alphabetic. This allow code like #include int Lefèvre=2; int main() { printf("Lefèvre=%d\n",Lefèvre); return 0; } --- tests/tests2/83_utf8_in_identifiers.c | 9 +++++++++ tests/tests2/83_utf8_in_identifiers.expect | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 tests/tests2/83_utf8_in_identifiers.c create mode 100644 tests/tests2/83_utf8_in_identifiers.expect (limited to 'tests') diff --git a/tests/tests2/83_utf8_in_identifiers.c b/tests/tests2/83_utf8_in_identifiers.c new file mode 100644 index 0000000..1f86095 --- /dev/null +++ b/tests/tests2/83_utf8_in_identifiers.c @@ -0,0 +1,9 @@ +#include +double привет=0.1; +int Lefèvre=2; +int main(){ + printf("привет=%g\n",привет); + printf("Lefèvre=%d\n",Lefèvre); + return 0; +} +// pcc & tcc only diff --git a/tests/tests2/83_utf8_in_identifiers.expect b/tests/tests2/83_utf8_in_identifiers.expect new file mode 100644 index 0000000..1553f5f --- /dev/null +++ b/tests/tests2/83_utf8_in_identifiers.expect @@ -0,0 +1,2 @@ +привет=0.1 +Lefèvre=2 -- cgit v1.3.1