feat!: properly handle UTF-16 endianness encoding

This commit is contained in:
Amaan Qureshi 2024-10-04 23:15:17 -04:00
parent cf8ed78a9a
commit 8943983df6
20 changed files with 485 additions and 50 deletions

View file

@ -172,7 +172,7 @@ TSTree *ts_parser_parse_wasm(
TSInput input = {
input_buffer,
call_parse_callback,
TSInputEncodingUTF16
TSInputEncodingUTF16LE
};
if (range_count) {
for (unsigned i = 0; i < range_count; i++) {