mgunyho
dcfd91fc25
doc: Add internal links to backticked text where applicable
2023-08-28 19:26:37 +03:00
mgunyho
4fabc49066
doc: Fix broken link
2023-08-28 19:26:33 +03:00
Andrew Hlynskyi
1ad692daf9
Merge pull request #2583 from ahlinc/chore-hang-tests-note
...
chore: add an extra notes for hang tests
2023-08-28 17:35:33 +03:00
Andrew Hlynskyi
cbce87dab1
chore: add an extra notes for hang tests
2023-08-28 14:16:36 +03:00
Andrew Hlynskyi
a0d0b35c04
Merge pull request #2566 from amaanq/incl-range
...
fix: do not increment `current_included_range_index` past `included_range_count` in `__do_advance`
2023-08-28 06:30:02 +03:00
Andrew Hlynskyi
a9c4965dd6
cicd: exclude hang tests for exotic arches and ASAN
2023-08-28 05:39:57 +03:00
Andrew Hlynskyi
b205a1f5a2
Run parser hang test in a killable subprocess
2023-08-27 21:00:26 +03:00
Amaan Qureshi
a4ea4737ac
fix: do not increment current_included_range_index past included_range_count in __do_advance
2023-08-27 14:16:18 +03:00
Andrew Hlynskyi
8e718fcb1c
Merge pull request #2574 from ahlinc/fix-gen-parser-h
...
fix(gen): `parser.c` should include `parser.h` relatively
2023-08-26 22:53:51 +03:00
Andrew Hlynskyi
f1362f7ac5
Merge pull request #2573 from ahlinc/fix-makefile
...
fix: makefile should install only `api.h` header
2023-08-26 22:15:08 +03:00
Andrew Hlynskyi
60779cc1ac
fix(gen): parser.c should include parser.h relatively
2023-08-26 20:57:08 +03:00
Andrew Hlynskyi
b412d86f19
fix: makefile should install only api.h header
2023-08-26 20:51:52 +03:00
Amaan Qureshi
6d41d99990
Merge pull request #2559 from amaanq/silent-ignore-u
...
fix: ignore regex u flag
2023-08-25 19:25:15 -04:00
Andrew Hlynskyi
a3cb16f6b3
Merge pull request #2564 from Southporter/update-zig-build
...
Updated build.zig to work with 0.11.0
2023-08-25 20:46:33 +03:00
Andrew Hlynskyi
bb504027bd
Merge pull request #2560 from ahlinc/reorder-gen
...
chore: small fixes in `parser.c` generation
2023-08-25 20:08:37 +03:00
Andrew Hlynskyi
7c2f31611f
Merge pull request #2561 from ahlinc/fix-api-vis-v2
...
fix(lib): improve visibility control for clang in `api.h`
2023-08-25 20:08:13 +03:00
Amaan Qureshi
6969766664
fix: ignore regex u flag
...
It's needed for certain regex patterns in JS, and we can just silently ignore it.
2023-08-25 19:23:08 +03:00
Shem Sedrick
13c79db3aa
Updated build.zig to work with 0.11.0
2023-08-25 19:18:46 +03:00
Andrew Hlynskyi
b3fef28a10
chore(gen): add parser.c enum names to be better discoverable
2023-08-25 19:11:42 +03:00
Andrew Hlynskyi
fbfa58edc8
chore(gen): move external scanner stuff closer to the end of parser.c
2023-08-25 19:11:42 +03:00
Andrew Hlynskyi
fae3c5b5cf
fix(lib): improve visibility control for clang
2023-08-25 19:11:19 +03:00
Andrew Hlynskyi
04b6c20f11
Merge pull request #2565 from ahlinc/fix-ci
...
chore: fix CI after fixture grammar updates
2023-08-25 18:07:58 +03:00
Andrew Hlynskyi
5c5de9ca61
cicd: rename runtime to platform for better clarity
2023-08-25 17:36:03 +03:00
Andrew Hlynskyi
e985d0e743
cicd: pin rust toolchain to 1.71.1 for all mips targets
2023-08-25 17:36:03 +03:00
Andrew Hlynskyi
b22e4fe3c9
chore: fix a wasm bash test
2023-08-25 17:36:03 +03:00
Amaan Qureshi
39bbd9867d
Merge pull request #2554 from amaanq/debug-bug
...
fix(query): debug print uses wrong variable
2023-08-23 17:36:51 -04:00
Andrew Hlynskyi
7ac69ed1b7
Merge pull request #2556 from ahlinc/fix-alias-on-anon
...
fix(gen): cycle between aliases and anonymous symbols
2023-08-23 18:31:23 +03:00
Amaan Qureshi
1dbb986515
chore: add a test for an aliased anonymous symbol with flags
2023-08-23 16:55:12 +03:00
Andrew Hlynskyi
683fe442e4
fix(gen): cycle between aliases and anonymous symbols
...
An example of an error cycle in a `parser.c`:
```
static const TSSymbol ts_symbol_map[] = {
...
[anon_sym_RBRACE] = anon_sym_RBRACE2,
[anon_sym_RBRACE2] = anon_sym_RBRACE,
...
};
```
2023-08-23 16:51:05 +03:00
Amaan Qureshi
5c7098dd56
fix(query): debug print uses wrong variable
2023-08-22 19:22:31 -04:00
Andrew Hlynskyi
b4649fbb56
Merge pull request #2552 from ahlinc/fix-2551
...
fix: `make install` BSDs don't have `-t` option
2023-08-22 17:47:18 +03:00
Andrew Hlynskyi
bba9809390
fix: make install BSDs don't have -t option
2023-08-22 16:33:03 +03:00
Amaan Qureshi
49c35b3f93
Merge pull request #2550 from amaanq/self-parent-set
...
fix(injections): only allow setting self/parent via `#set!`
2023-08-22 02:17:33 -04:00
Amaan Qureshi
95ab103f48
docs: update injection properties
2023-08-22 01:36:25 -04:00
Amaan Qureshi
cd0bdf586f
fix(injections): only allow setting self/parent via #set!
2023-08-22 01:27:00 -04:00
Amaan Qureshi
e716e2e45a
Merge pull request #2544 from amaanq/injection-parent
...
`@injection.parent`
2023-08-21 17:31:45 -04:00
Andrew Hlynskyi
80b68953df
Merge pull request #2549 from DennySun2100/master
...
fix: GCC pragma causes warning on non-GNU compilers
2023-08-21 22:34:16 +03:00
DennySun2100
f4a6134461
GCC pragma causes warning on non-GNU compilers
2023-08-21 11:54:09 -07:00
Andrew Hlynskyi
535434f208
Merge pull request #2543 from ahlinc/fix-2542
...
fix: `make install` should install files with default perms
2023-08-21 11:34:20 +03:00
Amaan Qureshi
e3a5863287
feat: add @injection.parent to inject an injection's node with the parent language
2023-08-21 01:08:17 -04:00
Amaan Qureshi
da6affaf94
feat: allow @injection.self to inject the node w/ itself
2023-08-21 00:53:04 -04:00
Andrew Hlynskyi
897c187786
fix: make install should install files with default perms
2023-08-21 06:19:49 +03:00
Andrew Hlynskyi
023e0f2503
Merge pull request #2540 from ahlinc/build-bindgen
...
feat: optionally generate Rust bindings during build process
2023-08-21 04:01:41 +03:00
Andrew Hlynskyi
abd57bc69b
chore: simplify script/generate-bindings
2023-08-21 02:56:14 +03:00
Andrew Hlynskyi
4278e03b11
feat: generate Rust bindings during build process
...
It can be used as:
> cargo build -p tree-sitter -F bindgen
2023-08-21 02:56:14 +03:00
Amaan Qureshi
62823fc333
Merge pull request #2538 from amaanq/unsafety
...
fix(safety): mark functions that potentially deref a raw pointer as unsafe
2023-08-19 20:27:30 -04:00
Amaan Qureshi
c332066666
fix(safety): improve docs for unsafe C functions
2023-08-19 19:49:29 -04:00
Andrew Hlynskyi
ffae7d6115
fix: mark helper Rust funcs that receive raw pointers as unsafe
2023-08-20 02:12:51 +03:00
Amaan Qureshi
ac579be788
fix(safety): mark functions that potentially deref a raw pointer as unsafe
2023-08-19 18:59:11 -04:00
Amaan Qureshi
c37dd2458b
Merge pull request #2529 from amaanq/injection-self
...
feat: add `injection.self` to inject a node with itself
2023-08-19 12:43:10 -04:00