summaryrefslogtreecommitdiff
path: root/src/syntax.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.zig')
-rw-r--r--src/syntax.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/syntax.zig b/src/syntax.zig
index 5c8b9c0f..9c1a4f4b 100644
--- a/src/syntax.zig
+++ b/src/syntax.zig
@@ -140,8 +140,9 @@ fn initSpecs() [specCount()]Spec {
var specs = initSpecs();
-/// What the tree-sitter runtime allocates from: `start`'s allocator, through
-/// the shared C heap.
+/// What tree-sitter allocates from, the runtime and every grammar's external
+/// scanner (build.zig compiles them to use the runtime's allocator):
+/// `start`'s allocator, through the shared C heap.
var syntax_allocator: std.mem.Allocator = undefined;
const syntax_heap = c_heap.Heap(&syntax_allocator);
var syntax_started = false;