Commit graph

4548 commits

Author SHA1 Message Date
Amaan Qureshi
ef9cabd4b5
fix: update javascript tests and use cpp/javascript master for fixtures 2023-09-20 11:31:53 -04:00
Amaan Qureshi
e0f54611ad
Merge pull request #2632 from amaanq/wasm-exports
feat: add some more commonly used functions to exports.json
2023-09-19 10:11:52 -04:00
Amaan Qureshi
6d4aac723f
feat: add some more commonly used functions to exports.json 2023-09-19 09:29:13 -04:00
Andrew Hlynskyi
46af27796a
Merge pull request #2617 from ahlinc/segfault-node-state
fix(lib): segmentation fault in `ts_node_parse_state`
2023-09-12 03:15:12 +03:00
Andrew Hlynskyi
46965770fc fix(lib): segmentation fault in ts_node_parse_state 2023-09-12 02:35:22 +03:00
Andrew Hlynskyi
524bf7e2c6
Merge pull request #2607 from ahlinc/fix-zero-deallocs
fix: `dealloc` calls on zero pointers
2023-09-03 09:45:52 +03:00
Andrew Hlynskyi
796c5a2ccf
Merge pull request #2606 from ahlinc/ffi-rm-c-enum-pfx
chore(ffi): remove enum name prefixes from all C enum values
2023-09-03 09:45:38 +03:00
Andrew Hlynskyi
9cc1daafca chore(ffi): remove enum name prefixes from all C enum values 2023-09-03 07:38:27 +03:00
Andrew Hlynskyi
7f7084c2cb chore(test): panic on zero pointer deallocs for alloc tracked scopes 2023-09-03 07:12:11 +03:00
Andrew Hlynskyi
67a5dbdd93 fix: dealloc calls on zero pointers 2023-09-03 06:53:18 +03:00
Andrew Hlynskyi
5921b36a75
Merge pull request #2603 from ahlinc/query-with-slices
chore(rust): make `Query` predicates state fully immutable
2023-09-03 00:17:22 +03:00
Andrew Hlynskyi
75cb5c3374
Merge pull request #2602 from ahlinc/lib-fix-naming
chore(lib): fix fields naming in `QueryPattern` to singular
2023-09-02 23:51:50 +03:00
Andrew Hlynskyi
08ac19086b chore: simplify test case after query state improvements 2023-09-02 23:12:28 +03:00
Andrew Hlynskyi
52f7eaff31 chore(rust): make Query extra predicates state fully immutable 2023-09-02 23:12:28 +03:00
Andrew Hlynskyi
055c329a69 chore(lib): fix fields naming in QueryPattern to singular 2023-09-02 21:08:54 +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