Commit graph

970 commits

Author SHA1 Message Date
Amaan Qureshi
9e99789e4c
Merge pull request #2407 from amaanq/bump-deps
Bump deps
2023-07-19 17:05:10 -04:00
Amaan Qureshi
fc1514d0cd
Merge pull request #2401 from amaanq/fix-inline-bug
fix: disallow inlining the first rule
2023-07-19 17:04:17 -04:00
Amaan Qureshi
5fba369c4a
fix: disallow inlining the first rule
This prevents a panic when indexing symbol_ids during the generation process
2023-07-19 16:14:58 -04:00
Samuel Moelius
d9d4116105
Add test_consecutive_zero_or_modifiers 2023-07-19 03:27:43 -04:00
Amaan Qureshi
56cedba4bf
chore: bump dependencies 2023-07-19 03:18:17 -04:00
Amaan Qureshi
0e53b66931
chore: remove useless use 2023-07-19 03:12:13 -04:00
Max Brunsfeld
8310fd423e Update node unit test to reflect C grammar change 2023-07-18 17:58:19 -07:00
Max Brunsfeld
40f7b2ec97 Fix parsing of queries that start with repetitions followed by alternatives 2023-07-18 17:57:52 -07:00
Amaan Qureshi
e77405841e
refactor: make a subdirectory for the scratch dir depending on the machine's features 2023-07-18 20:14:21 -04:00
Amaan Qureshi
76f5f81aee
chore: update test 2023-07-18 19:29:40 -04:00
Amaan Qureshi
c436897662
test: bump start_time limit for sparc64 2023-07-18 19:07:51 -04:00
Amaan Qureshi
77a8c56558
ci: add big-endian & some obscure architectures 2023-07-18 15:44:20 -04:00
Andrew Hlynskyi
e1ea3328f4
Merge pull request #2394 from amaanq/hmmcipt2
Add more architectures to CICD
2023-07-16 17:23:26 +03:00
Andrew Hlynskyi
6ab282b578 cicd: add armv7l target #1366#issuecomment-1503176694 2023-07-16 16:07:13 +03:00
Andrew Hlynskyi
19ed2238cd Fix arch mappings in install.js 2023-07-16 15:42:29 +03:00
Amaan Qureshi
975f3f4686 refactor!: use AtomicUsize for AllocationRecorder for portability 2023-07-16 05:14:11 -04:00
Amaan Qureshi
c23ec2c3ae ci: add more architectures 2023-07-16 05:14:11 -04:00
Amaan Qureshi
2a277879ab
Merge pull request #2340 from tree-sitter/highlights-conformance
feat: add --check flag to `tree-sitter highlight`
2023-07-16 04:57:23 -04:00
Andrew Hlynskyi
0558f1e0bf test: add retries for all timeout tests 2023-07-16 05:05:36 +03:00
Patrick Thomson
cb58bc593f
Add --check flag to tree-sitter highlight.
Recently I've been pulling a lot of grammars into GitHub's highlighting backend,
replacing legacy language support with tree-sitter highlighting queries.
Our backend systems have a standard set of highlight captures we expect, very
similar to the standard tagging captures we expect. Though end-user applications
are free to choose whatever tagging nomenclature they want, I think it's nice to
include a checking stage that will help us ensure that we know whether a capture
might be recognized or not. It will also help us figure out where we need to
expand our standard set of captures (see #1539).
2023-07-15 20:49:03 -04:00
Andrew Hlynskyi
0b0cc6c429 Fix rustc 1.71.0 warnings 2023-07-13 17:50:04 +03:00
Amin Yahyaabadi
04453f64af fix: remove redundant get_compiler() call 2023-07-11 10:57:34 -07:00
Amin Yahyaabadi
5d83c8f3b8 fix: do not use -fPIC on Windows 2023-07-11 10:57:34 -07:00
Amin Yahyaabadi
76c5773d7c fix: fix detection of the compiler on windows 2023-07-11 10:57:34 -07:00
Amaan Qureshi
9d669abac4 feat: add encoding flag and automatically check if a file might be utf-16 2023-07-10 16:43:35 -04:00
Max Brunsfeld
356f68293a Fix false positive query match bug, introduced in #2085 2023-07-10 16:12:59 -04:00
Amaan Qureshi
3504aa3260 fix(deps): bump proc-macro2 as an unstable feature became stabilized 2023-07-10 16:12:19 -04:00
Amaan Qureshi
b192200008 fix: update tests from python grammar changes 2023-07-10 14:40:18 -04:00
Max Brunsfeld
4922602369
Merge pull request #2316 from tree-sitter/node-descendant-index
Add APIs for retrieving descendant counts, seeking to nodes by their descendant index
2023-06-12 15:13:43 -07:00
Max Brunsfeld
3375527a89 Fix bug in ts_tree_cursor_goto_descendant 2023-06-12 14:45:30 -07:00
Max Brunsfeld
9dd725b4e3 Start work on exposing APIs for node descendant counts and indices 2023-06-09 08:51:47 -07:00
Samuel Moelius
67f4f2328c Add test_query_error_does_not_oob 2023-05-19 21:31:01 -04:00
Andrew Hlynskyi
543e9cdc93 emscripten: 3.1.37 2023-05-15 13:11:55 +03:00
Andrew Hlynskyi
da269ac350 test: add a test case to demonstrate the #2107 issue 2023-05-13 19:40:49 +03:00
Andrew Hlynskyi
09fe5f29d9 fix(test): stick tree-sitter-cpp fixture grammar to a specific hash
It's needed to fix tests fail: https://github.com/tree-sitter/tree-sitter-cpp/pull/202#issuecomment-1546279646

See CLI xtask notes in https://github.com/tree-sitter/tree-sitter/issues/1223
2023-05-13 18:57:42 +03:00
Andrew Hlynskyi
ceac2380ed chore(test): reorganize test helpers 2023-05-12 19:29:51 +03:00
Andrew Hlynskyi
e966c5ad5b fix: use SIGINT instead of stdin for interruption to don't mess up piped commands 2023-05-02 10:43:46 +03:00
Andrew Hlynskyi
85a588b5b0 Fix tests, adapt to tree-sitter-json 40a81c01a40ac48744e0c8ccabbaba1920441199 2023-04-22 12:08:50 +03:00
Andrew Hlynskyi
c2e264ac0a emscripten: 3.1.35 2023-04-17 18:14:27 +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
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
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
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
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