From 366f2f2210d9f583149843ed223131b6c64aaa59 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Mon, 14 Oct 2024 21:22:20 -0400 Subject: [PATCH] chore: regenerate --- src/grammar.json | 1 + src/node-types.json | 15 +-------------- src/tree_sitter/alloc.h | 8 ++++---- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/grammar.json b/src/grammar.json index adbc056..38e1908 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1,4 +1,5 @@ { + "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json", "name": "java", "word": "identifier", "rules": { diff --git a/src/node-types.json b/src/node-types.json index 2b5024e..29a5f48 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -111,20 +111,6 @@ } ] }, - { - "type": "comment", - "named": true, - "subtypes": [ - { - "type": "block_comment", - "named": true - }, - { - "type": "line_comment", - "named": true - } - ] - }, { "type": "declaration", "named": true, @@ -2921,6 +2907,7 @@ { "type": "program", "named": true, + "root": true, "fields": {}, "children": { "multiple": true, diff --git a/src/tree_sitter/alloc.h b/src/tree_sitter/alloc.h index 1f4466d..1abdd12 100644 --- a/src/tree_sitter/alloc.h +++ b/src/tree_sitter/alloc.h @@ -12,10 +12,10 @@ extern "C" { // Allow clients to override allocation functions #ifdef TREE_SITTER_REUSE_ALLOCATOR -extern void *(*ts_current_malloc)(size_t); -extern void *(*ts_current_calloc)(size_t, size_t); -extern void *(*ts_current_realloc)(void *, size_t); -extern void (*ts_current_free)(void *); +extern void *(*ts_current_malloc)(size_t size); +extern void *(*ts_current_calloc)(size_t count, size_t size); +extern void *(*ts_current_realloc)(void *ptr, size_t size); +extern void (*ts_current_free)(void *ptr); #ifndef ts_malloc #define ts_malloc ts_current_malloc