Amaan Qureshi
7ad21396c2
feat!: use Option<NonZeroU16> for TSFieldIds
2023-07-27 12:26:25 -04:00
Amaan Qureshi
3f44b89685
Merge pull request #2414 from amaanq/cc-flag
...
chore: make implicit function declarations a compile-time error
2023-07-20 07:37:28 -04:00
Amaan Qureshi
13de63a113
chore: update Cargo.lock
2023-07-20 07:04:49 -04:00
Amaan Qureshi
cf418a286e
chore: make implicit function declarations a compile-time error
2023-07-20 06:52:50 -04:00
Amaan Qureshi
25cb8c7dac
Merge pull request #2370 from amaanq/wshadow
...
fix -Wshadow warnings, some clang-tidy lints, and sort includes
2023-07-19 19:34:58 -04:00
Amaan Qureshi
13f6ec2b0c
fix: rename shadowed variables from -Wshadow warnings and apply some useful clang-tidy warnings
2023-07-19 18:12:26 -04:00
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
Amaan Qureshi
8f73fb502f
Merge pull request #2408 from amaanq/codeql-bugs
...
fix(lib): explicitly cast numbers to the same size in potential spots for infinite loops
2023-07-19 16:11:43 -04:00
Amaan Qureshi
2a5122e673
feat: better optimizations for release builds
2023-07-19 16:07:46 -04:00
Amaan Qureshi
6f38a76ead
Merge pull request #2281 from smoelius/consecutive-zero-or
...
fix: handle edge cases involving consecutive "zero or" modifiers
2023-07-19 15:21:28 -04:00
Amaan Qureshi
753fa1c3ff
fix(lib): explicitly cast numbers to the same size in potential spots for infinite loops
2023-07-19 03:49:14 -04:00
Samuel Moelius
a07cdb59f3
Handle edge cases involving consecutive "zero or" modifiers
2023-07-19 03:27:43 -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
Amaan Qureshi
1c65ca24bc
Merge pull request #2406 from tree-sitter/query-alternatives-after-repetitions
...
Fix miscompilation of queries that start with repetitions followed by alternatives
2023-07-18 21:56:02 -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
6526efc5f5
Merge pull request #2402 from amaanq/big-endian
...
fix: pass a value_id the same size of predicate_capture_ids's elements to avoid big-endian integer narrowing
2023-07-18 20:50:27 -04: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
Amaan Qureshi
c16a8c71ce
fix: pass a value_id the same size of predicate_capture_ids's elements to avoid big-endian integer narrowing
...
This solves a bug on big-endian architectures where the value would be later passed by reference as an elements "view" before being inserted. The issue is it is casted as a void pointer, and when writing uint16_t's of size 1, only 2 of the 4 bytes are written. This is okay for little-endian systems, but not big-endian
2023-07-18 05:40:38 -04:00
Andrew Hlynskyi
ba9f847155
Merge pull request #2398 from ahlinc/test-script-cleanup
...
chore: script/test - fix usage, remove trial mention that was previously deleted
2023-07-16 22:07:56 +03:00
Andrew Hlynskyi
b52d9313dd
chore: script/test - fix usage, remove trial mention, deleted in 7170ec7c
2023-07-16 19:50:13 +03: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
c6ed994ed2
Merge pull request #2397 from tree-sitter/pr-2232-v2
...
Add build.zig for easy use as a Zig library - v2
2023-07-16 17:02:52 +03:00
Auguste Rame
834ae233cb
Add build.zig for easy use as a Zig library
2023-07-16 16:39:55 +03:00
Andrew Hlynskyi
e7a16ceb06
cicd: install Emscripten conditionally
2023-07-16 16:07:13 +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
Amaan Qureshi
e010661482
Merge pull request #2393 from tree-sitter/more-test-retries
...
test: add retries for all timeout tests
2023-07-15 22:45:53 -04:00
Andrew Hlynskyi
0558f1e0bf
test: add retries for all timeout tests
2023-07-16 05:05:36 +03:00
Amaan Qureshi
ba10e99ac4
Merge pull request #2392 from amaanq/ci
...
ci: only run release if the owner is `tree-sitter`
2023-07-15 21:06:34 -04:00
Amaan Qureshi
12971103f5
ci: only run release if the owner is tree-sitter
2023-07-15 21:04:42 -04:00
Amaan Qureshi
d30e9c9d71
Merge pull request #2391 from amaanq/update-tests
...
test: update C tests from upstream
2023-07-15 20:49:25 -04:00
Amaan Qureshi
fc0e3a34ba
test: update C tests from upstream
2023-07-15 20:07:46 -04:00
Patrick Thomson
a7481361cf
Treat leading _ character as private.
2023-07-15 19:43:41 -04:00
Patrick Thomson
01b47f1a15
Add more Helix captures, including the markup hierarchy.
2023-07-15 20:49:02 -04: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
193f29efe2
Merge pull request #2384 from tree-sitter/no-copy-clone
...
rust: remove `Copy, Clone` derives from raw struct where it's not applicable
2023-07-14 00:53:35 +03:00
Andrew Hlynskyi
45aede8bf5
script/generate-bindings - protect from using old incompatible bindgen versions
2023-07-14 00:19:23 +03:00
Andrew Hlynskyi
7afd5a1a8b
rust: remove Copy, Clone from opaque ptr data structs
2023-07-14 00:19:23 +03:00
Andrew Hlynskyi
a2bcc4f448
script/generate-bindings - no derived Copy, Clone for ptr data wrappers
2023-07-14 00:19:23 +03:00