Commit graph

4438 commits

Author SHA1 Message Date
Amaan Qureshi
ece1060d2c
feat: warn users when using non-static functions that aren't needed for tree-sitter 2023-08-16 01:59:03 -04:00
Andrew Hlynskyi
026c81035d
Merge pull request #2504 from tree-sitter/fix-dts
fix: dsl.d.ts - define previous param in rule callbacks
2023-08-16 01:04:34 +03:00
Andrew Hlynskyi
029899f719 fix: dsl.d.ts - define previous param in rule callbacks 2023-08-15 23:28:54 +03:00
Amaan Qureshi
62e96c9f61
Merge pull request #2502 from amaanq/profiles
fix: use opt-level 3 by default, and add a size profile
2023-08-14 15:53:38 -04:00
Amaan Qureshi
93450df85e fix: use opt-level 3 by default, and add a size profile 2023-08-14 14:12:45 -04:00
Amaan Qureshi
2d0a3d647b
Merge pull request #2491 from amaanq/sanitize
fix: replace & sanitize more characters
2023-08-13 20:15:20 -04:00
Amaan Qureshi
14cd76c354
Merge pull request #2499 from amaanq/flags-if-exist
fix: don't add flags if they're not present
2023-08-13 19:34:15 -04:00
Amaan Qureshi
0b1b0d2fb7
fix: replace & sanitize more characters 2023-08-13 19:29:37 -04:00
Amaan Qureshi
318d4a705a fix: don't add flags if they're not present 2023-08-13 16:28:03 -04:00
Amaan Qureshi
7e2e82a93c
Merge pull request #2497 from amaanq/inc-dec
fix: use SEQ_CST in atomic inc/dec
2023-08-13 13:42:23 -04:00
Amaan Qureshi
ec17f60de5
fix: use SEQ_CST in atomic inc/dec 2023-08-13 12:27:00 -04:00
Amaan Qureshi
5354680c15
Merge pull request #2492 from amaanq/musl
fix: musl compilation
2023-08-13 03:16:43 -04:00
Amaan Qureshi
7a6c0f23fa fix: musl compilation 2023-08-13 02:02:40 -04:00
Amaan Qureshi
dee98e06e9
Merge pull request #2474 from amaanq/case-insensitive
feat!: support the case-insensitive regex flag
2023-08-11 23:12:15 -04:00
Andrew Hlynskyi
14d41fedaa
Merge pull request #2486 from ahlinc/lib-rm-dep
Remove `lazy_static` lib dep forgotten in 622359b4
2023-08-12 00:42:44 +03:00
Andrew Hlynskyi
f0fde974e4 Remove lazy_static lib dep forgotten in 622359b4 2023-08-12 00:10:35 +03:00
Andrew Hlynskyi
300d9aa250
Merge pull request #2482 from ahlinc/alt-2454
Alternative fix for #2454
2023-08-10 05:12:40 +03:00
Andrew Hlynskyi
4a007259fc Fix warning from #2454 in more clear way 2023-08-10 03:59:34 +03:00
Andrew Hlynskyi
85a01db8f0
Merge pull request #2481 from tree-sitter/rename-lookahead-method
Rename: `ts_lookahead_iterator_advance` -> `ts_lookahead_iterator_next`
2023-08-09 15:14:50 +03:00
Andrew Hlynskyi
26c3ae7b98 Rename: ts_lookahead_iterator_advance -> ts_lookahead_iterator_next 2023-08-09 14:40:29 +03:00
Andrew Hlynskyi
1253c4c654
Merge pull request #2480 from tree-sitter/dependabot/bundler/docs/commonmarker-0.23.10
chore(deps-dev): bump commonmarker from 0.23.9 to 0.23.10 in /docs
2023-08-09 00:07:02 +03:00
dependabot[bot]
5cca35e2ef
chore(deps-dev): bump commonmarker from 0.23.9 to 0.23.10 in /docs
Bumps [commonmarker](https://github.com/gjtorikian/commonmarker) from 0.23.9 to 0.23.10.
- [Release notes](https://github.com/gjtorikian/commonmarker/releases)
- [Changelog](https://github.com/gjtorikian/commonmarker/blob/v0.23.10/CHANGELOG.md)
- [Commits](https://github.com/gjtorikian/commonmarker/compare/v0.23.9...v0.23.10)

---
updated-dependencies:
- dependency-name: commonmarker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 20:25:20 +00:00
Amaan Qureshi
82719cda01
Merge pull request #2476 from brianstrauch/fix-write-color-hex
fix: pad hex numbers with zeros when writing colors
2023-08-08 17:06:22 +01:00
Brian Strauch
d0afe1ad0a fix: pad hex numbers with zeros when writing colors
This solves a bug where a hex color with a zero can get truncated
2023-08-08 09:04:15 -04:00
Amaan Qureshi
f35752e3ac
feat!: support the case-insensitive regex flag 2023-08-06 23:40:29 -04:00
Amaan Qureshi
0a1c4d8466
Merge pull request #1816 from andrewtbiehl/update-highlight-docs
docs: update tree-sitter-highlight README
2023-08-07 04:00:04 +01:00
Andrew Biehl
083b6949ed
docs: update tree-sitter-higlight README 2023-08-06 22:13:04 -04:00
Amaan Qureshi
fc88622b7b
Merge pull request #2428 from amaanq/regex-whitespace
fix(generate): add Vertical Tab and Form Feed to the whitespace class
2023-08-07 02:37:57 +01:00
Amaan Qureshi
96919cae5d
fix(generate): add Vertical Tab and Form Feed to the whitespace class 2023-08-06 20:41:09 -04:00
Amaan Qureshi
a48459806c
Merge pull request #2467 from amaanq/consistent-api-function-sigs
fix: ensure function signatures in the API consistently show parameter names
2023-08-03 19:05:56 -04:00
Amaan Qureshi
d710dc9c89 fix: ensure function signatures in the API consistently show parameter names 2023-08-03 22:17:53 +01:00
Andrew Hlynskyi
e024653cb0
Merge pull request #2403 from jakesarjeant/master
feat(cli): add option to select JS runtime other than node
2023-08-03 22:29:22 +03:00
Amaan Qureshi
397ead5459
Merge pull request #1051 from e-hat/highlight-testing-recursive-dirs
feat: run highlight tests in subdirectories
2023-08-03 14:52:37 -04:00
Jake Sarjeant
61b70943b1 feat(cli): add option to select JS runtime other than node 2023-08-03 21:34:47 +03:00
Eddie Hatfield
14aa23b1e1 feat: run highlight tests in subdirectories 2023-08-03 19:11:28 +01:00
Amaan Qureshi
05a4f9f3e3
Merge pull request #1411 from aminya/c-warnings
Fix compiling C library with Clang on Windows
2023-08-03 13:39:52 -04:00
Andrew Hlynskyi
7318cd5ef9
Merge pull request #2465 from tree-sitter/compact-func-style-calls
Make Rust code statements more compact and in functional style
2023-08-03 15:25:20 +03:00
Andrew Hlynskyi
e23e4cea18 Make Rust code statements more compact and in functional style 2023-08-03 14:28:00 +03:00
Andrew Hlynskyi
cb8c89fbd7
Merge pull request #2464 from tree-sitter/relax-lifetimes
feat: rework lifetimes, relax dependencies and tie only on implementations
2023-08-03 14:22:33 +03:00
Andrew Hlynskyi
c85f81f625 feat: rework lifetimes, relax deps and tie only on impls 2023-08-03 13:13:26 +03:00
Andrew Hlynskyi
3f7fd21fb3
Merge pull request #2278 from smoelius/partially-revert-d4d5e29
Partially revert d4d5e29
2023-08-03 12:24:04 +03:00
Andrew Hlynskyi
485d192880 binding_rust: set_max_start_depth accepts optional to reset limit 2023-08-03 11:45:36 +03:00
Samuel Moelius
7b01d8ee05 Add test_query_max_start_depth_more 2023-08-03 11:45:34 +03:00
Samuel Moelius
41ec8b4166 Partially revert d4d5e29 2023-08-03 11:41:50 +03:00
Andrew Hlynskyi
144c096a27
Merge pull request #2462 from tree-sitter/api-ext-ub
Fix UB for `LookaheadIterator`
2023-08-03 04:37:39 +03:00
Andrew Hlynskyi
d185f3126f Make LookaheadIterator Sync and Send 2023-08-03 03:50:35 +03:00
Andrew Hlynskyi
7816397026 Add compile fail tests for LookaheadIterator 2023-08-03 03:49:57 +03:00
Andrew Hlynskyi
4eb22ed3ae Fix UB for LookaheadIterator 2023-08-03 03:49:57 +03:00
Andrew Hlynskyi
63e1bc458b
Merge pull request #2456 from tree-sitter/additional-sync-send
Additional `Sync` and `Send` for `Node` and `TreeCursor`
2023-08-03 03:46:45 +03:00
Andrew Hlynskyi
1fbe929ad9 feat: define Sync, Send for Node and TreeCursor types 2023-08-03 03:03:03 +03:00