.github
workflows build.yml
content help.txt ollama.txt
queries bash.scm c.scm cpp.scm css.scm dockerfile.scm go.scm html.scm javascript.scm lua.scm markdown.scm php.scm python.scm sql.scm tsx.scm typescript.scm
samples format.txt lsp.c ollama.py test.c test.cpp test.css test.dockerfile test.html test.js test.lua test.md test.php test.py test.rb test.sh test.sql test.ts test.tsx
vendor
github.com
mattn
go-runewidth .travis.yml LICENSE README.md go.test.sh runewidth.go runewidth_appengine.go runewidth_js.go runewidth_posix.go runewidth_table.go runewidth_windows.go
mitjafelicijan
go-tree-sitter
bash binding.go parser.c parser.h scanner.c
c binding.go parser.c parser.h
cpp binding.go parser.c parser.h scanner.c
css binding.go parser.c parser.h scanner.c
dockerfile binding.go parser.c parser.h scanner.c
golang binding.go parser.c parser.h
html binding.go parser.c parser.h scanner.c tag.h
javascript binding.go parser.c parser.h scanner.c
lua binding.go parser.c parser.h scanner.c
markdown
tree-sitter-markdown binding.go parser.c parser.h scanner.c
php
tree_sitter .keep alloc.h array.h parser.h
binding.go parser.c parser.h scanner.c scanner.h
python binding.go parser.c parser.h scanner.c
sql
tree_sitter .keep alloc.h array.h parser.h
binding.go parser.c scanner.c
typescript
tsx binding.go parser.c parser.h scanner.c scanner.h
typescript binding.go parser.c parser.h scanner.c scanner.h
.gitignore LICENSE Makefile README.md alloc.c alloc.h api.h array.h atomic.h bindings.c bindings.go bindings.h bits.h clock.h error_costs.h get_changed_ranges.c get_changed_ranges.h host.h iter.go language.c language.h length.h lexer.c lexer.h node.c parser.c parser.h point.h ptypes.h query.c reduce_action.h reusable_node.h stack.c stack.h subtree.c subtree.h test_grammar.go test_grammar.js test_grammar_generate.sh tree.c tree.h tree_cursor.c tree_cursor.h umachine.h unicode.h urename.h utf.h utf16.h utf8.h wasm_store.c wasm_store.h
nsf
termbox-go AUTHORS LICENSE README.md api.go api_common.go api_windows.go collect_terminfo.py escwait.go escwait_darwin.go syscalls_darwin.go syscalls_darwin_amd64.go syscalls_dragonfly.go syscalls_freebsd.go syscalls_linux.go syscalls_netbsd.go syscalls_openbsd.go syscalls_windows.go termbox.go termbox_common.go termbox_windows.go terminfo.go terminfo_builtin.go
modules.txt
.gitignore LICENSE Makefile README.md buffer.go colors.go command.go config.go editor.go embed.go ftypes.go go.mod go.sum info.go intro.go kevent.go lsp.go main.go ollama.go replace.go syntax.go theme.go treesitter.txt
vendor/github.com/mitjafelicijan/go-tree-sitter/php/tree_sitter/alloc.h raw
 1#ifndef TREE_SITTER_ALLOC_H_
 2#define TREE_SITTER_ALLOC_H_
 3
 4#ifdef __cplusplus
 5extern "C" {
 6#endif
 7
 8#include <stdbool.h>
 9#include <stdio.h>
10#include <stdlib.h>
11
12// Allow clients to override allocation functions
13#ifdef TREE_SITTER_REUSE_ALLOCATOR
14
15extern void *(*ts_current_malloc)(size_t);
16extern void *(*ts_current_calloc)(size_t, size_t);
17extern void *(*ts_current_realloc)(void *, size_t);
18extern void (*ts_current_free)(void *);
19
20#ifndef ts_malloc
21#define ts_malloc  ts_current_malloc
22#endif
23#ifndef ts_calloc
24#define ts_calloc  ts_current_calloc
25#endif
26#ifndef ts_realloc
27#define ts_realloc ts_current_realloc
28#endif
29#ifndef ts_free
30#define ts_free    ts_current_free
31#endif
32
33#else
34
35#ifndef ts_malloc
36#define ts_malloc  malloc
37#endif
38#ifndef ts_calloc
39#define ts_calloc  calloc
40#endif
41#ifndef ts_realloc
42#define ts_realloc realloc
43#endif
44#ifndef ts_free
45#define ts_free    free
46#endif
47
48#endif
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif // TREE_SITTER_ALLOC_H_