Skip to content

Commit f8c9b88

Browse files
authored
Merge pull request #27 from jvllmr/more-byte-literal-variation
fix: add byte literals with characters up to utf-32be
2 parents 7dd6676 + 1a07b71 commit f8c9b88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pysource_codegen/_codegen.py

+5
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,11 @@ def child_node(n, t, q, parents):
16101610
"",
16111611
"'\"'''\"\"\"{}\\",
16121612
b"'\"'''\"\"\"{}\\",
1613+
b"\xef\xbb\xbf", # utf-8
1614+
b"\xff\xfe\0\0", # utf-32
1615+
b"\0\0\xfe\xff", # utf-32be
1616+
b"\xff\xfe", # utf-16
1617+
b"\xfe\xff", # utf-16be
16131618
self.rand.randint(0, 20),
16141619
self.rand.uniform(0, 20),
16151620
True,

0 commit comments

Comments
 (0)