Andrew Hlynskyi
52f7eaff31
chore(rust): make Query extra predicates state fully immutable
2023-09-02 23:12:28 +03:00
Amaan Qureshi
74e77b10c1
Merge pull request #2597 from amaanq/option-t
...
refactor: remove `&Option<T>` where used
2023-09-01 18:42:17 -04:00
Amaan Qureshi
dc5ec1cf53
refactor: remove &Option<T> where used
2023-09-01 17:23:39 -04:00
Amaan Qureshi
293f0d1ca3
Merge pull request #2532 from amaanq/quantified-predicate-fix
...
feat!: properly handle predicates used on quantified captures
2023-08-31 21:01:47 -04:00
Amaan Qureshi
ec88699f1c
test(node): update bash test
2023-08-31 18:26:22 -04:00
Amaan Qureshi
09030401d1
fix(node): add _isalpha
2023-08-31 17:58:42 -04:00
Amaan Qureshi
c5cb27e522
docs: improve predicate docs
2023-08-31 16:01:37 -04:00
Amaan Qureshi
09ac28c77d
feat!: properly handle predicates used on quantified captures
2023-08-31 16:01:36 -04:00
Andrew Hlynskyi
a0cf0a7104
Merge pull request #2585 from mgunyho/include-readme-in-lib-docs
...
doc: Include README in top-level Rust module documentation
2023-08-29 01:09:59 +03:00
Andrew Hlynskyi
f9117a0221
doc: Add internal links for api.h funcs
2023-08-28 23:09:37 +03:00
Andrew Hlynskyi
756e51867d
doc: fix cargo doc warnings
2023-08-28 23:09:37 +03:00
Andrew Hlynskyi
0862921537
doc: Include README as top-level module documentation for all crates
2023-08-28 23:09:37 +03:00
mgunyho
bdc0e44d45
doc: Include README in top-level module documentation
2023-08-28 21:27:41 +03:00
Andrew Hlynskyi
9de9396958
Merge pull request #2584 from mgunyho/doc-fixes
...
doc: Add internal links and fix formatting of Rust docs
2023-08-28 21:10:43 +03:00
mgunyho
8d894bb050
doc: Add backticks to all internal links
2023-08-28 19:26:38 +03:00
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