feat: skip UTF-8 BOM in source input and add regression test
Add handling for UTF-8 byte order mark (BOM) at the start of source code in wrenCompile function by checking for the three-byte sequence \xEF\xBB\xBF and advancing the source pointer past it. Include a regression test file (test/regression/520.wren) that contains a BOM to verify the fix works correctly.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
// This file should have a UTF-8 byte order mark
|
||||
System.print("ok") // expect: ok
|
||||
Reference in New Issue
Block a user