Will Lillis
ef03a3f8fe
fix(ci): correct mdbook release url
2025-11-02 18:37:09 -05:00
Christian Clason
18a5243933
ci(docs): pin mdbook to latest release
2025-11-02 18:07:47 -05:00
Christian Clason
8444cc3deb
fix(docs): remove multilingual config field
...
Problem: "deploy docs" always pulls in the `latest` release of `mdbook`,
which now is a v0.5.0 prerelease with breaking changes -- including
removing an (apparently unused) `multilingual` config field in the TOML
that is now an error (another breaking change).
Solution: Delete the line. Add `workflow_dispatch` to the docs workflow
in case follow-up changes are needed; see
https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#05-migration-guide
2025-11-02 18:07:47 -05:00
Will Lillis
097c2d4f05
fix(cli): remove --emit=lib generate option
...
This also replaces the `--emit` option with an `--no-parser` flag. The
default value is false, meaning a parser is still generated by default.
2025-11-02 10:26:28 +01:00
WillLillis
b8f52210f9
perf: reduce needless allocations
2025-10-30 18:24:42 +01:00
WillLillis
ecc787e221
fix(test): correct language typo in test name
2025-10-30 18:24:42 +01:00
Christian Clason
6188010f53
build(deps): bump rquickjs to v0.10.0
2025-10-29 18:30:25 -04:00
Christian Clason
70cde4a110
ci(dependabot): only update patch releases for cargo
2025-10-29 18:30:25 -04:00
Christian Clason
77363a65c2
build(deps): cargo update
2025-10-29 18:30:25 -04:00
dependabot[bot]
605e580063
ci: bump the actions group across 1 directory with 3 updates
...
Bumps the actions group with 3 updates in the / directory: [actions/upload-artifact](https://github.com/actions/upload-artifact ), [actions/download-artifact](https://github.com/actions/download-artifact ) and [actions/setup-node](https://github.com/actions/setup-node ).
Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5 )
Updates `actions/download-artifact` from 5 to 6
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6 )
Updates `actions/setup-node` from 5 to 6
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/download-artifact
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/setup-node
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-10-28 09:23:50 +01:00
WillLillis
a2f2b16acb
fix(xtask): require version argument for bump-version command
2025-10-24 18:13:59 -04:00
Will Lillis
87d778a1c6
fix(rust): apply Self usage in struct definition lint
2025-10-24 17:50:28 -04:00
Will Lillis
e344837e35
fix(rust): minor cleanup in generate code
2025-10-24 17:50:28 -04:00
ObserverOfTime
bdee2c2dd3
ci: use macos-15-intel runner
...
The macos-13 runner will soon be removed.
2025-10-24 10:14:52 +02:00
dependabot[bot]
da5926d6f5
build(deps): bump the cargo group across 1 directory with 4 updates
...
Bumps the cargo group with 4 updates in the / directory: [anstyle](https://github.com/rust-cli/anstyle ), [cc](https://github.com/rust-lang/cc-rs ), [thiserror](https://github.com/dtolnay/thiserror ) and [widestring](https://github.com/VoidStarKat/widestring-rs ).
Updates `anstyle` from 1.0.11 to 1.0.13
- [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.11...v1.0.13 )
Updates `cc` from 1.2.39 to 1.2.41
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.39...cc-v1.2.41 )
Updates `thiserror` from 2.0.16 to 2.0.17
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.16...2.0.17 )
Updates `widestring` from 1.2.0 to 1.2.1
- [Release notes](https://github.com/VoidStarKat/widestring-rs/releases )
- [Changelog](https://github.com/VoidStarKat/widestring-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/VoidStarKat/widestring-rs/compare/v1.2.0...v1.2.1 )
---
updated-dependencies:
- dependency-name: anstyle
dependency-version: 1.0.13
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: cc
dependency-version: 1.2.41
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: thiserror
dependency-version: 2.0.17
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: widestring
dependency-version: 1.2.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-10-14 11:00:03 +02:00
Will Lillis
b3bc7701cd
refactor(generate): make AliasMap use BTreeMap over HashMap
2025-10-12 15:56:30 -04:00
Will Lillis
262f1782cc
fix(generate): ensure deterministic iteration order for symbol aliases
...
while constructing node-types.json
2025-10-12 15:56:30 -04:00
WillLillis
00d172bf9f
fix(generate): correct display of precedence for
...
`--report-states-for-rule`
2025-10-12 15:56:12 -04:00
Will Lillis
ae54350c76
fix(generate): Add missing fields to NodeInfoJson sorting
...
This ensures a deterministic ordering for node-types.json
2025-10-11 14:25:52 -04:00
Will Lillis
3355825a68
fix(cli): don't load languages for build command
2025-10-07 17:21:09 -04:00
ObserverOfTime
7d0e029e37
chore: add schema for node-types.json
2025-10-05 09:57:23 +03:00
Mihai-Daniel Potirniche
0f5ccc4aba
Fix typo
2025-10-04 12:12:39 -04:00
ObserverOfTime
0cf6e7c507
fix(cli): prevent crash when parsing stdin
...
When we are parsing stdin via a pipe or heredoc, the source count is 0
(unsigned) so the XML output crashes while trying to subtract from it.
2025-10-03 19:24:58 +03:00
dependabot[bot]
1dc4804b6e
build(deps): bump the cargo group with 2 updates
...
Bumps the cargo group with 2 updates: [memchr](https://github.com/BurntSushi/memchr ) and [regex](https://github.com/rust-lang/regex ).
Updates `memchr` from 2.7.5 to 2.7.6
- [Commits](https://github.com/BurntSushi/memchr/compare/2.7.5...2.7.6 )
Updates `regex` from 1.11.2 to 1.11.3
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.11.2...1.11.3 )
---
updated-dependencies:
- dependency-name: memchr
dependency-version: 2.7.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: regex
dependency-version: 1.11.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 02:57:21 -04:00
Amaan Qureshi
c5b22a1dc6
ci: split cross compilation and emscripten tag read
2025-10-01 02:57:04 -04:00
Amaan Qureshi
92efd26380
fix(loader): allow parallel compilation on windows
2025-10-01 02:57:04 -04:00
Amaan Qureshi
24c8feba3e
fix(bindings): fix root detection on windows
2025-09-28 08:40:02 -04:00
Amaan Qureshi
122493b717
style(cli): appease clippy
2025-09-28 05:54:28 -04:00
Amaan Qureshi
4edcca9850
style(loader): appease clippy
2025-09-28 05:54:28 -04:00
dependabot[bot]
be0c44f871
build(deps): bump the cargo group with 7 updates
...
Bumps the cargo group with 7 updates:
| Package | From | To |
| --- | --- | --- |
| [anyhow](https://github.com/dtolnay/anyhow ) | `1.0.99` | `1.0.100` |
| [cc](https://github.com/rust-lang/cc-rs ) | `1.2.37` | `1.2.39` |
| [clap](https://github.com/clap-rs/clap ) | `4.5.47` | `4.5.48` |
| [clap_complete](https://github.com/clap-rs/clap ) | `4.5.57` | `4.5.58` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.11.1` | `2.11.4` |
| [libloading](https://github.com/nagisa/rust_libloading ) | `0.8.8` | `0.8.9` |
| [tempfile](https://github.com/Stebalien/tempfile ) | `3.22.0` | `3.23.0` |
Updates `anyhow` from 1.0.99 to 1.0.100
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.99...1.0.100 )
Updates `cc` from 1.2.37 to 1.2.39
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.37...cc-v1.2.39 )
Updates `clap` from 4.5.47 to 4.5.48
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.47...clap_complete-v4.5.48 )
Updates `clap_complete` from 4.5.57 to 4.5.58
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.57...clap_complete-v4.5.58 )
Updates `indexmap` from 2.11.1 to 2.11.4
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.11.1...2.11.4 )
Updates `libloading` from 0.8.8 to 0.8.9
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.8.8...0.8.9 )
Updates `tempfile` from 3.22.0 to 3.23.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.22.0...v3.23.0 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-version: 1.0.100
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: cc
dependency-version: 1.2.39
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap
dependency-version: 4.5.48
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap_complete
dependency-version: 4.5.58
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: indexmap
dependency-version: 2.11.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: libloading
dependency-version: 0.8.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: tempfile
dependency-version: 3.23.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-09-28 05:54:28 -04:00
ObserverOfTime
35b1356e96
ci(dependabot): update package.json as well
2025-09-28 04:15:36 -04:00
ObserverOfTime
443acf080a
ci(dependabot): enable cooldown period
...
This setting will delay package updates by 3 days which generally
should be enough time for supply chain attacks to be discovered
2025-09-28 03:58:23 -04:00
Amaan Qureshi
00e394f0f1
feat(lib)!: disallow whitespace in supertype syntax
2025-09-28 00:56:30 -04:00
Amaan Qureshi
341665824c
fix(lib): validate subtypes in supertype queries
2025-09-28 00:56:30 -04:00
Amaan Qureshi
bd02be25d5
fix(lib): allow anonymous nodes in the supertype query syntax
2025-09-28 00:56:30 -04:00
WillLillis
12a6400c63
fix(test): trim trailing carriage return unconditionally in test
...
contents
2025-09-27 19:28:03 -04:00
ObserverOfTime
d86e1b4f5e
feat(bindings): generate zig fingerprint
2025-09-26 18:02:35 -04:00
WillLillis
422866a437
fix(docs): update more broken links
2025-09-26 16:10:29 -05:00
Amaan Qureshi
5f7806f99e
feat: add option to disable parse state optimizations
2025-09-26 02:40:53 -04:00
WillLillis
a9bce7c18a
fix(generate): return error when generated grammar's state count exceeds
...
the maximum allowed value.
Co-authored-by: Amaan Qureshi <git@amaanq.com>
2025-09-25 22:29:04 -05:00
WillLillis
335bfabc60
feat(cli): include filenames in parsing xml output
2025-09-25 22:28:31 -05:00
Amaan Qureshi
e1b424c191
Revert "0.26.0"
2025-09-24 16:42:01 -04:00
Amaan Qureshi
ea9c318afb
docs: update highlight crate link
2025-09-24 16:29:08 -04:00
ObserverOfTime
9d66dbc28f
chore: remove CARGO_WORKSPACE_DIR var
2025-09-24 16:14:08 -04:00
Riley Bruins
8c22426223
feat(rust): add new_raw to create a raw, unchecked query pointer
2025-09-23 19:06:22 -04:00
Amaan Qureshi
90ee433c9b
fix(lib): account for unreachable patterns with children
...
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
2025-09-23 17:17:45 -04:00
Amaan Qureshi
f26bd44a43
flake: remove cross, add llvm-cov support
2025-09-23 01:19:14 -04:00
Amaan Qureshi
021d9c447d
test: clean up async boundary test
2025-09-23 01:19:14 -04:00
Amaan Qureshi
ce56465197
test(rust): prefer asserts to panics
2025-09-23 01:19:14 -04:00
Amaan Qureshi
b0cdab85fe
refactor(rust): avoid panics where possible
2025-09-23 01:19:14 -04:00