Commit graph

4206 commits

Author SHA1 Message Date
Andrew Hlynskyi
4f4b86a40b lib: make query step init depend from MAX_STEP_CAPTURE_COUNT decl 2023-04-19 09:37:46 +03:00
Andrew Hlynskyi
c4871a2604
Merge pull request #2214 from ahlinc/emscripten-3.1.35
emscripten: 3.1.35
2023-04-17 18:40:06 +03:00
Andrew Hlynskyi
c2e264ac0a emscripten: 3.1.35 2023-04-17 18:14:27 +03:00
Andrew Hlynskyi
af92bfc022
Merge pull request #2140 from lewis6991/master
feat: add `ts_query_cursor_set_max_depth()`
2023-04-17 11:56:18 +03:00
Andrew Hlynskyi
cc6596be82 chore(bindgen): update bindgen to 0.65.1 and regenerate bindings 2023-04-17 11:24:05 +03:00
Andrew Hlynskyi
d4d5e29c91 feat(lib): ts_query_cursor_set_max_start_depth - use 0 to reset 2023-04-17 11:16:04 +03:00
Lewis Russell
1e81a1b67f feat(lib): add ts_query_cursor_set_max_start_depth query API
This allows configuring cursors from traversing too deep into a tree.
2023-04-17 11:15:13 +03:00
Andrew Hlynskyi
2c8861d5ca
Merge pull request #2212 from ahlinc/windows-arm64
cicd: cleanup and add building for windows-arm64
2023-04-17 01:08:47 +03:00
Andrew Hlynskyi
26eeb0fc7f
Merge pull request #2213 from ahlinc/fix/cli-npm-installation
cli: npm - strict platform / arch mapping for provided targets
2023-04-17 00:40:33 +03:00
Andrew Hlynskyi
03b276d335
Merge pull request #2211 from ahlinc/docs-fixes
docs: fix markdown linter warnings + improve some details
2023-04-17 00:39:31 +03:00
Andrew Hlynskyi
1666283f37 cicd: cleanup and add building for windows-arm64 2023-04-17 00:21:54 +03:00
Andrew Hlynskyi
7642fda99f cli: npm - strict platform / arch mapping for provided targets 2023-04-17 00:17:43 +03:00
Andrew Hlynskyi
cae83253a2 cli: pack readme file into npm package 2023-04-17 00:03:17 +03:00
Andrew Hlynskyi
3c806913d8 docs: improve external scanner details and fix conflicting tokens details
* Removed convention notes introduced in #1947 due to:
  * It doesn't so strict for bindings and they may need to obey to some
    target language conventions.
  * For language grammars there is a note that states the same in the
    `Creating Parsers` section.
* Removed `External Scanning` item introduced in 87a0517 commit
  originated from #1612 due to unclear consistency with other
  5 original statements. There is a similar explanation in the
  `Other External Scanner Details` section.
2023-04-16 23:46:21 +03:00
Andrew Hlynskyi
613382c70a docs: update badges; fix markdown lint complains
Linter config `.vscode/settings.json`:
```json
{
    "[markdown]": {
        "files.trimTrailingWhitespace": false,
    },
    "markdownlint.config": {
        "default": true,
        // "ul-style": {
        //     "style": "asterisk"
        // },
        "MD001": false,
        "MD024": false,
        "MD025": false,
        "MD033": false,
        "MD041": false,
        "MD053": false,
    },
}
```
2023-04-16 23:39:08 +03:00
Andrew Hlynskyi
6c520452ad chore: fix years in the license file 2023-04-16 23:39:08 +03:00
Andrew Hlynskyi
0e4ff0bb27 chore: fix lib version in Makefile and set it to 0.20.10 2023-04-16 23:39:01 +03:00
Andrew Hlynskyi
d7fcc7aad3
Merge pull request #2206 from tree-sitter/fix-docs-prec-rules
docs: remove controversial statement
2023-04-15 05:43:04 +03:00
Andrew Hlynskyi
934dd1213f
Merge pull request #2202 from tree-sitter/dependabot/bundler/docs/nokogiri-1.14.3
chore(deps): bump nokogiri from 1.14.2 to 1.14.3 in /docs
2023-04-15 05:42:23 +03:00
Andrew Hlynskyi
e87e40f224
Merge pull request #2201 from tree-sitter/dependabot/bundler/docs/commonmarker-0.23.9
chore(deps): bump commonmarker from 0.23.8 to 0.23.9 in /docs
2023-04-15 05:42:11 +03:00
dependabot[bot]
d5465b9a32 chore(deps): bump nokogiri from 1.14.2 to 1.14.3 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.14.2...v1.14.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-15 05:16:06 +03:00
dependabot[bot]
e47f05062a chore(deps): bump commonmarker from 0.23.8 to 0.23.9 in /docs
Bumps [commonmarker](https://github.com/gjtorikian/commonmarker) from 0.23.8 to 0.23.9.
- [Release notes](https://github.com/gjtorikian/commonmarker/releases)
- [Changelog](https://github.com/gjtorikian/commonmarker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gjtorikian/commonmarker/compare/v0.23.8...v0.23.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-15 05:15:36 +03:00
Andrew Hlynskyi
b5e6d18086 docs: add a grammar syntax sample for lexical precedence 2023-04-15 05:10:02 +03:00
Andrew Hlynskyi
bfd56a1e59 docs: remove controversial Earliest Starting Position item added previously by 87a0517 2023-04-15 05:10:02 +03:00
Andrew Hlynskyi
f403edc9eb
Merge pull request #2207 from tree-sitter/cicd-issue
cicd: fix windows targets sporadic issue due to corrupted PATH
2023-04-15 04:34:49 +03:00
Andrew Hlynskyi
160550dabe cicd: fix windows targets sporadic issue due to corrupted PATH 2023-04-15 02:58:17 +03:00
Andrew Hlynskyi
c6d663f393
Merge pull request #2194 from ahlinc/cicd-tweak-triggers
cicd: switch main workflow to work on any branch except `release/v*` prefixed
2023-04-10 22:57:44 +03:00
Andrew Hlynskyi
8eacd34fd7 chore(cicd): better naming in the build matrix 2023-04-10 22:20:24 +03:00
Andrew Hlynskyi
7bc2bb605e cicd: switch main workflow to work on any branch except release/v* prefixed
The `release/v*` prefixed branches can be used only with a PR opened on
such branches. The release branches only accepted in the main repo
and not from forks.

Also this workflow enables runining on every `push` unconditionaly.
This leads to parallel runs on `push` and `pull_request` events
and that would seen in PR checks also in parallel, but this is
useful because checks that run on the `push` event runs on
head ref while checks on the `pull_request` event runs on
an additional `refs/pull/<PR>/merge` ref what is created
by Github on every push to a PR to check that it can be
merged to a target branch without conflicts and passed checks.
2023-04-10 21:20:36 +03:00
Andrew Hlynskyi
90fca305bf Merge branch 'recover-web-v0.20.8' into master 2023-04-10 20:32:59 +03:00
Andrew Hlynskyi
de906378ab web: 0.20.8 2023-04-10 19:50:32 +03:00
Andrew Hlynskyi
9f7166790e
Merge pull request #2183 from joelspadin/fix-windows-build-wasm
fix: use / paths in docker when building WASM on Windows
2023-04-10 09:33:55 +03:00
Andrew Hlynskyi
15504fd53c
Merge pull request #2191 from tree-sitter/cicd-tweaks-2
cicd: don't cancel runs on master by concurrency condition
2023-04-10 04:29:07 +03:00
Andrew Hlynskyi
4a723c985d cicd: don't cancel runs on master by concurrency condition 2023-04-10 03:55:23 +03:00
Andrew Hlynskyi
9ccfd648c9
Merge pull request #2190 from tree-sitter/fix-docs
chore(docs): fix misprint repetitions and remove dangling spaces
2023-04-09 20:47:26 +03:00
Andrew Hlynskyi
2869cdc60b
Merge pull request #2189 from tree-sitter/fix-dsl-d
fix(dsl): add support for rule refs to externals in `dsl.d.ts`
2023-04-09 20:47:14 +03:00
Andrew Hlynskyi
1f051d339c chore(docs): fix misprint repetitions and remove dangling spaces 2023-04-09 20:40:18 +03:00
Andrew Hlynskyi
8c6d157ca5 fix(dsl): fix formatting 2023-04-09 19:53:36 +03:00
Andrew Hlynskyi
ae738c3c0f fix(dsl): add support for rule refs to externals 2023-04-09 19:53:36 +03:00
Andrew Hlynskyi
e4d64457c3
Merge pull request #2142 from katrinafyi/patch-1
docs: alphabetise language bindings on front page
2023-04-09 17:50:22 +03:00
Kait Lam
e3ea048db1 docs: alphabetise language bindings on front page
This helps with readability when scanning for a particular language. It is, strangely, almost sorted with the exception of Java and Kotlin.
2023-04-09 17:48:00 +03:00
Andrew Hlynskyi
1cf8379461
Merge pull request #2188 from c4rlo/patch-1
docs: remove mention of Atom
2023-04-08 21:21:28 +03:00
Carlo Teubner
34e0ab696c
docs: remove mention of Atom
Atom is dead, so this mention seems unnecessary now.
2023-04-08 18:10:44 +01:00
Andrew Hlynskyi
366d0fde87
Merge pull request #2187 from tree-sitter/cicd-tweaks
cicd: better matrix construction, a separate sanitize workflow, manual trigger for the build workflow
2023-04-08 15:32:01 +03:00
Andrew Hlynskyi
d8caf6f8c5 chore(cicd): change formatting 2023-04-08 08:48:01 +03:00
Andrew Hlynskyi
f03f024ec4 cicd: change approach for matrix shaping with an anchor name plus extras 2023-04-08 08:48:01 +03:00
Andrew Hlynskyi
96086806d5 cicd: change author configuring for a tag 2023-04-08 08:48:01 +03:00
Andrew Hlynskyi
bb122d6d47 cicd: separate sanitize workflow + manual trigger for build workflow 2023-04-08 02:45:58 +03:00
Joel Spadin
10178ade35 fix: Use / paths when building WASM
Changed the build-wasm command to always use forward slashes in paths,
since using Windows style paths breaks if the build is run with Docker.

Fixes #532
2023-04-07 13:07:45 -05:00
Andrew Hlynskyi
978a2db239
Merge pull request #2178 from clason/master
ci: build CLI for macos-arm64
2023-04-07 10:48:34 +03:00