Skip to content

Commit aaf899e

Browse files
committed
fix: avoid global buffer overflow by adding missing tokens to interrupt symbols
1 parent 231f316 commit aaf899e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tree-sitter-markdown/src/scanner.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ const bool paragraph_interrupt_symbols[] = {
159159
false, // NO_INDENTED_CHUNK,
160160
false, // ERROR,
161161
false, // TRIGGER_ERROR,
162+
false, // EOF,
163+
false, // MINUS_METADATA,
164+
false, // PLUS_METADATA,
162165
true, // PIPE_TABLE_START,
163166
false, // PIPE_TABLE_LINE_ENDING,
164167
};

0 commit comments

Comments
 (0)