Amaan Qureshi
d95fcc83b9
fix: remove redundant imports
2024-02-19 06:36:48 -05:00
Amaan Qureshi
f526be8061
test: update html tests
2024-02-19 06:36:48 -05:00
dundargoc
d4067a6ae6
ci: cache fixtures
...
Only generate fixtures if any grammar from any parser or the parser
generation itself has changed.
2024-02-18 23:08:24 +01:00
dundargoc
48a1f12ca3
build: enable creating changelogs with git-cliff
...
Introduce a target called `changelog` that will use git-cliff to create
the changelog of the latest release.
Closes https://github.com/tree-sitter/tree-sitter/issues/527 .
2024-02-18 11:44:31 +01:00
Amaan Qureshi
5b299eafe5
fix: don't throw an error if the user uses map in the grammar
2024-02-18 00:26:14 -05:00
Matthew Smith
15e6cd1c35
refactor: name anonymous types in api.h
...
Anonymous structs cannot be forward declared. This change names anonymous
types in api.h so that consumers can forward declare them.
2024-02-17 13:55:11 +01:00
Amaan Qureshi
caa451f024
fix: don't log NUL characters
...
Graphviz dot will fail with this character present
2024-02-17 03:24:42 -05:00
Amaan Qureshi
da1f890752
chore: error out when multiple arguments are passed to token/token.immediate
2024-02-17 01:26:44 -05:00
Amaan Qureshi
8dd65ccbc0
refactor: &PathBuf -> &Path
2024-02-17 00:45:28 -05:00
Amaan Qureshi
03c5a8540d
feat: better error info when a scanner is missing required symbols
2024-02-17 00:45:28 -05:00
Amaan Qureshi
6c0643f295
fix: always push the default files if there's no externals
2024-02-16 22:42:40 -05:00
Amaan Qureshi
ef1b714e08
fix(cli): don't update tests automatically if parse errors are detected
2024-02-16 20:23:39 -05:00
Novus Nota
464dbef794
docs: add Tact language parser
2024-02-16 23:31:07 +01:00
Amaan Qureshi
e32a7f3998
chore: clippy lints
2024-02-16 16:32:07 -05:00
Amaan Qureshi
4342efd57e
feat: allow specifying an external scanner's files
2024-02-16 16:31:56 -05:00
Amaan Qureshi
b6c75ccec1
chore: update relevant rust tests
2024-02-16 12:34:12 -05:00
Amaan Qureshi
e996c32108
refactor!: remove the apply-all-captures flag, make last-wins precedence the default
2024-02-16 12:34:12 -05:00
dundargoc
bf9154febe
docs: small fixes
...
Co-authored-by: Wang <bonede@qq.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-02-16 00:15:49 +01:00
Nickolay
6895b7a1e1
Add some documentation to the playground page
...
The minimal UI of the Playground could benefit from some documentation to make it easier for the newer users to understand what's going on. Also added a link to the new documentation from the local playground.
Closes https://github.com/tree-sitter/tree-sitter/issues/1305
2024-02-15 16:24:21 +01:00
dundargoc
657d2b9c48
ci: remove reviewers when drafting or closing a PR
2024-02-15 15:39:39 +01:00
dundargoc
5d1db069f5
test: add quotes around bash variables
...
This allows the script to work on directory names with spaces in them.
Co-authored-by: buckynbrocko <77247638+buckynbrocko@users.noreply.github.com>
2024-02-15 14:33:34 +01:00
Amaan Qureshi
665f5a0793
docs: explicitly mention behavior of walking outside the given "root" node for a TSTreeCursor
2024-02-14 15:54:46 -05:00
Amaan Qureshi
74812ced1b
chore: deprecate C++ scanners
...
C++ has been a headache to deal with throughout the ecosystem and for
several downstream projects. It is difficult to get working with WASM,
and induces potential issues with compilation on Windows. It has been
proven that writing scanners in C is a much better alternative, and is
the recommended way to write scanners now. C++ support will likely be
removed in 0.21.0
2024-02-14 15:43:53 -05:00
Amaan Qureshi
d80d101e34
build: move common Cargo.toml keys into the workspace and inherit them
2024-02-14 14:56:23 -05:00
Amaan Qureshi
d989b26587
chore: print out full compiler arguments ran when it fails
2024-02-14 13:19:06 -05:00
dependabot[bot]
e8a818d0b9
build(deps): bump wasmtime from v16.0.0 to v17.0.1
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from v16.0.0 to v17.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](6613acd1e4...601e229d7a )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-14 12:59:13 -05:00
dundargoc
9319e28bcc
ci(sanitize): add a timeout of 60 minutes
...
There's a possibility of the test freezing so we add this as precaution.
2024-02-14 17:32:49 +01:00
Amaan Qureshi
73f56bffa9
fix: sexp format edge case with quoted closed parenthesis
2024-02-13 18:31:28 -05:00
Amaan Qureshi
4303ab99c9
fix: properly handle Query.matches when filtering out results
2024-02-13 16:40:05 -05:00
Amaan Qureshi
7e0dd7b9c1
feat(cli): add an optional grammar-path argument for the playground
2024-02-13 16:28:54 -05:00
Amin Yahyaabadi
51c147053e
feat: error out if an empty string is in the extras array
...
This prevents never-ending loops in the parser
2024-02-13 15:00:48 -05:00
Amaan Qureshi
da0596ba38
chore: remove deprecated query parsing mechanism
2024-02-13 13:35:32 -05:00
Amaan Qureshi
5ea0dbf77a
chore: some more clippy lints
2024-02-13 03:33:07 -05:00
Amaan Qureshi
a07f988905
refactor: extract regex check into a function and lower its precedence
2024-02-13 03:33:07 -05:00
Bedis Nbiba
7dd096c5f7
feat: implement first-line-regex
2024-02-13 01:51:41 -05:00
dependabot[bot]
1f196dc67d
build(deps): bump clap from 4.4.18 to 4.5.0
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.18 to 4.5.0.
- [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/v4.4.18...clap_complete-v4.5.0 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 23:25:51 -05:00
Amaan Qureshi
21f25a5305
feat: improve error message for files with an unknown grammar path
2024-02-12 17:17:37 -05:00
Amaan Qureshi
48deb309db
chore(cli): warn users when a query path needed for a subcommand isn't specified in a grammar's package.json
2024-02-12 17:17:37 -05:00
Amaan Qureshi
792cbde728
docs: mention that token($.foo) is illegal
2024-02-12 17:17:37 -05:00
Amaan Qureshi
0109c877d5
docs: document regex limitations
2024-02-12 17:17:37 -05:00
Amaan Qureshi
3da79ba2b6
fix: update schema for regex flags
2024-02-12 15:39:14 -05:00
dundargoc
1a6f3d39a7
build: remove symbolic links from repository
...
This will reduce cross-platform differences between windows and linux.
Closes https://github.com/tree-sitter/tree-sitter/issues/627 .
2024-02-12 14:16:12 +01:00
Amaan Qureshi
39df8e2833
chore(test): use different languages for async tests
2024-02-12 06:30:36 -05:00
Amaan Qureshi
7233c2f26f
feat: use lockfiles to dedup recompilation
2024-02-12 06:30:36 -05:00
Amaan Qureshi
e6d67ecde0
chore(wasm): use SIDE_MODULE=2 to silence warning
2024-02-11 20:18:30 -05:00
dundargoc
bd404bb223
build: add editorconfig
...
Having editor-agnostic styling is useful.
2024-02-11 13:03:58 +01:00
Yingdong Yang
0b7fc43828
fix(cli): installation via a HTTP tunnel proxy
2024-02-11 03:58:14 -05:00
Bedis Nbiba
c7ef6de315
docs(web): provide deno usage information
2024-02-11 03:39:38 -05:00
Amaan Qureshi
4149ed4149
chore: provide a CLI flag to open log.html
...
On macOS, this was done by default regardless of what the user wants.
This was also not done on Windows or Linux. Instead, we now provide a
`--open-log` flag to open the log file in the default browser, and it
works on all platforms.
2024-02-11 02:28:34 -05:00
Amaan Qureshi
0afa891ffc
ci: use the native m1 mac runner
2024-02-11 01:59:56 -05:00