chore: generate with tree-sitter 0.24.2
This commit is contained in:
parent
5c493f3722
commit
f2569dd1fc
27
package.json
27
package.json
|
@ -18,14 +18,13 @@
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tree-sitter": [
|
"files": [
|
||||||
{
|
"grammar.js",
|
||||||
"scope": "source.cmake",
|
"binding.gyp",
|
||||||
"file-types": [
|
"prebuilds/**",
|
||||||
"cmake",
|
"bindings/node/*",
|
||||||
"CMakeLists.txt"
|
"queries/*",
|
||||||
]
|
"src/**"
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tree-sitter-cli": "^0.21.0",
|
"tree-sitter-cli": "^0.21.0",
|
||||||
|
@ -34,13 +33,5 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install": "node-gyp-build",
|
"install": "node-gyp-build",
|
||||||
"prebuildify": "prebuildify --napi --strip"
|
"prebuildify": "prebuildify --napi --strip"
|
||||||
},
|
}
|
||||||
"files": [
|
}
|
||||||
"grammar.js",
|
|
||||||
"binding.gyp",
|
|
||||||
"prebuilds/**",
|
|
||||||
"bindings/node/*",
|
|
||||||
"queries/*",
|
|
||||||
"src/**"
|
|
||||||
]
|
|
||||||
}
|
|
1
src/grammar.json
generated
1
src/grammar.json
generated
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
|
||||||
"name": "cmake",
|
"name": "cmake",
|
||||||
"rules": {
|
"rules": {
|
||||||
"source_file": {
|
"source_file": {
|
||||||
|
|
1
src/node-types.json
generated
1
src/node-types.json
generated
|
@ -568,6 +568,7 @@
|
||||||
{
|
{
|
||||||
"type": "source_file",
|
"type": "source_file",
|
||||||
"named": true,
|
"named": true,
|
||||||
|
"root": true,
|
||||||
"fields": {},
|
"fields": {},
|
||||||
"children": {
|
"children": {
|
||||||
"multiple": true,
|
"multiple": true,
|
||||||
|
|
13044
src/parser.c
generated
13044
src/parser.c
generated
File diff suppressed because it is too large
Load diff
8
src/tree_sitter/alloc.h
generated
8
src/tree_sitter/alloc.h
generated
|
@ -12,10 +12,10 @@ extern "C" {
|
||||||
// Allow clients to override allocation functions
|
// Allow clients to override allocation functions
|
||||||
#ifdef TREE_SITTER_REUSE_ALLOCATOR
|
#ifdef TREE_SITTER_REUSE_ALLOCATOR
|
||||||
|
|
||||||
extern void *(*ts_current_malloc)(size_t);
|
extern void *(*ts_current_malloc)(size_t size);
|
||||||
extern void *(*ts_current_calloc)(size_t, size_t);
|
extern void *(*ts_current_calloc)(size_t count, size_t size);
|
||||||
extern void *(*ts_current_realloc)(void *, size_t);
|
extern void *(*ts_current_realloc)(void *ptr, size_t size);
|
||||||
extern void (*ts_current_free)(void *);
|
extern void (*ts_current_free)(void *ptr);
|
||||||
|
|
||||||
#ifndef ts_malloc
|
#ifndef ts_malloc
|
||||||
#define ts_malloc ts_current_malloc
|
#define ts_malloc ts_current_malloc
|
||||||
|
|
1
src/tree_sitter/parser.h
generated
1
src/tree_sitter/parser.h
generated
|
@ -47,6 +47,7 @@ struct TSLexer {
|
||||||
uint32_t (*get_column)(TSLexer *);
|
uint32_t (*get_column)(TSLexer *);
|
||||||
bool (*is_at_included_range_start)(const TSLexer *);
|
bool (*is_at_included_range_start)(const TSLexer *);
|
||||||
bool (*eof)(const TSLexer *);
|
bool (*eof)(const TSLexer *);
|
||||||
|
void (*log)(const TSLexer *, const char *, ...);
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
35
tree-sitter.json
Normal file
35
tree-sitter.json
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"grammars": [
|
||||||
|
{
|
||||||
|
"name": "cmake",
|
||||||
|
"camelcase": "Cmake",
|
||||||
|
"scope": "source.cmake",
|
||||||
|
"path": ".",
|
||||||
|
"file-types": [
|
||||||
|
"cmake",
|
||||||
|
"CMakeLists.txt"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"version": "0.5.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"description": "CMake grammar for tree-sitter",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Uy Ha"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"links": {
|
||||||
|
"repository": "https://github.com/tree-sitter/tree-sitter-cmake"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bindings": {
|
||||||
|
"c": true,
|
||||||
|
"go": true,
|
||||||
|
"node": true,
|
||||||
|
"python": true,
|
||||||
|
"rust": true,
|
||||||
|
"swift": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue