Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void tree_sitter_c_sharp_external_scanner_destroy(void *payload) {
unsigned tree_sitter_c_sharp_external_scanner_serialize(void *payload, char *buffer) {
Scanner *scanner = (Scanner *)payload;

if (scanner->interpolation_stack.size * 4 > TREE_SITTER_SERIALIZATION_BUFFER_SIZE) {
if (scanner->interpolation_stack.size * 4 + 2 > TREE_SITTER_SERIALIZATION_BUFFER_SIZE) {
return 0;
}

Expand Down