Commit graph

4428 commits

Author SHA1 Message Date
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
Andrew Hlynskyi
0f533b909d chore: group Sync, Send impls by type 2023-08-03 03:03:03 +03:00
Andrew Hlynskyi
4f28ce4e3b Add async context tests for Node and TreeCursor 2023-08-03 03:03:03 +03:00
Andrew Hlynskyi
73bb2c36fc
Merge pull request #2461 from tree-sitter/no-ord-on-range
Remove `PartialOrd, Ord` deriving from `Range` in Rust lib
2023-08-02 19:35:29 +03:00
Andrew Hlynskyi
b456f831d1 Remove PartialOrd, Ord deriving from Range in Rust lib 2023-08-02 18:30:32 +03:00
Amaan Qureshi
0c5a6eb525
Merge pull request #2458 from the-mikedavis/md-cancellation-highlight
feat(cli): Re-use highlight cancellation flag for HTML highlights
2023-08-02 10:38:56 -04:00
Michael Davis
3e499d675a
CLI: Re-use highlight cancellation flag for HTML highlights
The `html` highlight function created its own cancellation flag which
conflicts with the Ctrl-c handler set up in the CLI's `main` block
for `tree-sitter highlight`. We can re-use the cancellation flag from
that block to avoid a panic that happens when using `tree-sitter
highlight -H <file>`

    thread 'main' panicked at 'Error setting Ctrl-C handler: MultipleHandlers', cli/src/util.rs:31:6

This change also aligns the parameters that `highlight::ansi` and
`highlight::html` take.
2023-08-02 08:56:26 -05:00
Amaan Qureshi
ca16a2b86e
Merge pull request #2445 from amaanq/eof-loop-token-rep
fix: do not allow eof to advance states if the new state is the same state
2023-08-02 07:49:18 -04:00
Amaan Qureshi
acef7a3cdf chore: add tests 2023-08-02 10:47:28 +01:00
Amaan Qureshi
b8fe5fe21b fix: do not allow eof to advance states if the new state is the same state 2023-08-02 10:47:27 +01:00
Andrew Hlynskyi
2284eecdc7
Merge pull request #2324 from daumantas-kavolis-sensmetry/api-extensions
Api extensions: previous sibling, last child, lookahead iterator
2023-08-02 01:44:27 +03:00