Amaan Qureshi
90d3d64e39
feat: update ci script, add python repo
2023-08-15 19:59:35 +07:00
Amaan Qureshi
cca9213823
chore: update tests
2023-08-15 19:59:35 +07:00
Amaan Qureshi
71977ea08c
chore: generate
2023-08-15 19:59:35 +07:00
Amaan Qureshi
8f71d9cb98
fix(scanner): don't dedent inside f-strings, skip newlines following a backslash in raw strings
2023-08-15 19:59:35 +07:00
Amaan Qureshi
bcbf41589f
feat: support Python 3.12
...
This adds support for type alias statements and type parameters
fix: some string bugs
2023-08-15 19:59:35 +07:00
Wilfred Hughes
e0a1405453
Add the ability to parse conflict markers and diff the two files
2023-08-15 09:01:15 +07:00
Amaan Qureshi
48fdcfb2d5
chore: update tests
2023-08-14 15:44:17 +07:00
Amaan Qureshi
4ef1cec6fc
chore: generate
2023-08-14 15:44:17 +07:00
Amaan Qureshi
e0cb646673
feat: move parsing escape_interpolations to the scanner
2023-08-14 15:44:17 +07:00
Rick Winfrey
49b6f1c84a
Add module tag query
2023-08-14 13:08:40 +07:00
Wilfred Hughes
f06e95ca02
Renamed `old_path` to `extra_info` and format it during option parsing
...
This allows us to use this field for other purposes that aren't
renames.
2023-08-14 08:41:42 +07:00
Wilfred Hughes
f1ba399504
Move local variable closer to first use
2023-08-14 08:27:42 +07:00
Wilfred Hughes
c6be0bc16a
Mention --check-only in the FAQ
2023-08-13 23:08:06 +07:00
Wilfred Hughes
eeb2974967
Move option parsing before argument parsing
...
This is useful for additional mode parsing that wants to access these
options.
2023-08-13 21:34:42 +07:00
Wilfred Hughes
1c60f3efd3
Move content detection out of diff_file_content
...
This makes the function useful in cases when we already have a string,
not bytes.
2023-08-13 21:31:37 +07:00
Wilfred Hughes
0af76db498
Update regression tests for humansize file formatting
2023-08-13 09:10:16 +07:00
Wilfred Hughes
3c702d0490
Use humansize for file size formatting
2023-08-12 22:34:11 +07:00
Amaan Qureshi
8077be4c55
Merge pull request #186 from amaanq/fixes
...
Fixes
2023-08-12 15:45:24 +07:00
Wilfred Hughes
d901ac6e9e
Silence warning on compiling tree-sitter-go
2023-08-12 11:35:48 +07:00
Amaan Qureshi
38c8b0bbfb
chore: update manifests and README
2023-08-12 14:23:26 +07:00
Amaan Qureshi
cd7d20f73a
ci: update ci action, add fuzz, lint, and publish actions
2023-08-12 14:23:26 +07:00
Amaan Qureshi
6f7aab758b
feat: add and apply eslint formatting
2023-08-12 14:23:26 +07:00
Amaan Qureshi
9c2c5d9209
chore: move corpus to test/
2023-08-12 14:23:26 +07:00
Amaan Qureshi
fc1cc80acf
chore: generate
2023-08-12 14:23:26 +07:00
Amaan Qureshi
752e98a79a
feat: improve parsing of numbers and C-style for loops
...
Co-authored-by: Nathan Sobo <nathan@zed.dev>
2023-08-12 14:23:26 +07:00
Amaan Qureshi
a7325bd0a0
fix: don't error out on empty assignments followed by a terminator
2023-08-12 13:48:04 +07:00
Amaan Qureshi
91d8161935
fix: immediate `#`s are allowed in a concatenation, as well as variable assignments
2023-08-12 13:48:04 +07:00
Amaan Qureshi
a3935656b6
fix: do not scan heredoc ends when it succeeds non-ws text
2023-08-12 13:48:04 +07:00
Wilfred Hughes
5f25bc0ebd
Rename information in header should only be shown on first hunk
...
Fixes #553
2023-08-11 08:21:29 +07:00
Wilfred Hughes
f2f9260542
Use the Kotlin parser's built-in highlighting
2023-08-09 00:04:57 +07:00
Wilfred Hughes
56230d1c69
Merge commit '06a2f6e71c7fcac34addcbf2a4667adad1b9c5a7'
2023-08-08 23:39:19 +07:00
Wilfred Hughes
4e77f83dd9
Merge commit '7dc4fb60390218b09bc351062eeede7dcdbb4d9f'
2023-08-08 23:37:28 +07:00
Wilfred Hughes
d0cf8c6d0d
Merge commit 'e398400a0b785af3cf571f5a57eccab242f0cdf9'
2023-08-08 23:28:07 +07:00
Wilfred Hughes
20760558ff
Merge commit '338db38330f0d25cba8e2c6428240ebc5e020264'
2023-08-08 23:26:49 +07:00
Wilfred Hughes
3612c472f5
Merge commit '5f2c94b897601b4029fedcce7db4c6d76ce8a128'
2023-08-08 23:24:52 +07:00
Wilfred Hughes
34d20d6665
Merge commit 'a2861e88a730287a60c11ea9299c033c7d076e30'
2023-08-08 23:24:08 +07:00
Wilfred Hughes
3eb014c0a7
Merge commit 'bbaa67a180cfe0c943e50c55130918be8efb20bd'
2023-08-08 23:22:22 +07:00
Wilfred Hughes
db8797d6c2
Merge commit '7aa24fe8616072fc1a659f72d5b60bd8c01fb5cc'
2023-08-08 23:01:48 +07:00
Wilfred Hughes
a187d7a134
Improve rename styling
...
It should use the heading with colour, consistent with other modes,
and the header should come before rename information.
2023-08-08 08:53:33 +07:00
Wilfred Hughes
1e97003da9
Update to latest rayon
...
This is also a tiny perf win (2.467B instructions to 2.429B
instructions for slow_before.rs).
2023-08-08 08:22:30 +07:00
Wilfred Hughes
4fdc8eebcd
Increase MSRV to 1.59
2023-08-07 20:32:08 +07:00
Wilfred Hughes
ab1b87eebb
Update year in in LICENSE
2023-08-05 22:28:45 +07:00
Wilfred Hughes
2f3f0a875a
Add note about how MSRV is chosen
2023-08-05 10:17:58 +07:00
Wilfred Hughes
ba92a93f9b
Fix rustc warning on recent nightly
2023-08-04 23:31:31 +07:00
Wilfred Hughes
19cbf1d458
Implement some other useful traits on EqOnFirstItem
...
These aren't immediately used, but they're handy for experimenting
with the similar library which requires these.
2023-08-04 23:29:29 +07:00
Wilfred Hughes
892d4fdb58
Ensure size_hint never exceeds graph_limit
...
If we have thousands of syntax nodes on both sides, we can end
up attempting to preallocate a very large hashmap.
In #542 , a user hit an issue with two JSON files where the LHS had
33,000 syntax nodes and the RHS had 34,000 nodes, so we'd attempt to
preallocate a hashmap of capacity 1,122,000,000. This required
allocating 70,866,960,400 bytes (roughly 66 GiB).
Impose a sensible limit on the hashmap.
Fixes #542
2023-08-04 17:19:27 +07:00
Wilfred Hughes
c937f819a1
Log the number of bytes in the arena at the end of route finding
2023-08-04 17:04:23 +07:00
Wilfred Hughes
0c01c73398
Be consistent in lifetime names for Vertex
2023-08-03 08:32:16 +07:00
6cdh
7dc4fb6039
add comment for symbol/number parse
2023-08-03 18:04:41 +07:00
6cdh
47f9148a66
bump version: v0.3.0
...
* rewrite scanner from C++ to C, thanks @amaanq
* optimize symbol/number parse
2023-08-02 13:37:42 +07:00