Re: [PATCH] lex: accept zero codepoints in strings

2021-08-08 Thread Mark Wielaard
debeest.org/git/user/mjw/gccrs/commit/?h=str-zero Cheers, Mark >From 007e6ecefb0b43d0b9e7bf85f75ec050b5c520e5 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 7 Aug 2021 17:32:41 +0200 Subject: [PATCH] lex: accept zero codepoints in strings Zero characters (codepoints) are accepta

Re: [PATCH] lex: accept zero codepoints in strings

2021-08-08 Thread Philip Herron
On 07/08/2021 16:45, Mark Wielaard wrote: > Zero characters (codepoints) are acceptable in strings. The current > Lexer::parse_string skipped such zero codepoints by accidents. The > zero codepoint was also used as error/skip indicator, but that is only > true if the third argument of utf8_escape_p

[PATCH] lex: accept zero codepoints in strings

2021-08-07 Thread Mark Wielaard
Zero characters (codepoints) are acceptable in strings. The current Lexer::parse_string skipped such zero codepoints by accidents. The zero codepoint was also used as error/skip indicator, but that is only true if the third argument of utf8_escape_pair is true (yes, it is called pair, but is a trip