ObserverOfTime
c6964c45dd
Introduce 'CDStart' node
2023-08-06 11:39:27 +07:00
ObserverOfTime
148c3a1674
Improve regular expressions
2023-08-06 11:13:09 +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
ObserverOfTime
207a17bb9e
Remove fields that don't work
2023-08-05 19:55:43 +07:00
ObserverOfTime
9e8ce35817
Support xml-model & xml-stylesheet instructions
2023-08-05 18:35:55 +07:00
ObserverOfTime
1b9749175d
Clean up 'children' node
2023-08-05 16:36:58 +07:00
ObserverOfTime
7504b895e7
Support conditional sections
2023-08-05 16:26:28 +07:00
ObserverOfTime
696e427d30
Add (mostly valid) corpus tests
2023-08-05 15:34:58 +07:00
ObserverOfTime
1f7156087a
Extend the DTD grammar instead of injecting it
2023-08-05 13:02:46 +07:00
ObserverOfTime
ae6b8f7399
Change standard URL to XML 1.0 [no ci]
2023-08-05 12:19:37 +07:00
ObserverOfTime
49b5114a46
Implement XML parser
2023-08-05 12:02:54 +07:00
ObserverOfTime
be27be476e
Implement DTD parser
2023-08-05 11:22:14 +07:00
ObserverOfTime
4adc9c0ccf
Add common constructs
2023-08-05 11:20:44 +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
ObserverOfTime
b4dbacce31
Initial commit
2023-08-05 01:32:53 +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
6cdh
dbfe8096bc
feat: optimize symbol/number parse and reduce library size
2023-08-02 13:34:17 +07:00
Wilfred Hughes
757c297412
Adjust header style
...
Show the hunk count and detected language in a dimmed style. This
information is less important than the diff content itself, so this
change makes the important information more prominent.
First part of #544
2023-07-31 08:35:27 +07:00
Wilfred Hughes
37683db6de
Don't fail CI if coverage upload fails
...
This step sometimes fails, which does not mean our code is bad.
2023-07-29 10:40:32 +07:00
Amaan Qureshi
5af00f64af
fix: remove unnecessary conflict
2023-07-27 17:36:43 +07:00
Wilfred Hughes
797af40ae8
Improve Java highlighting
2023-07-27 08:33:38 +07:00
Amaan Qureshi
a2861e88a7
Mark helper functions static to avoid compile time conflicts with other scanners ( #60 )
2023-07-27 09:25:48 +07:00
Wilfred Hughes
b2c8cb640f
Update crossbeam-channel dependency
...
0.5.x prior to 0.5.8 have been yanked:
https://github.com/crossbeam-rs/crossbeam/blob/master/crossbeam-channel/CHANGELOG.md
2023-07-26 20:38:34 +07:00
Wilfred Hughes
de0e1f5bda
Add test for --ignore-comments option
2023-07-26 20:15:13 +07:00
Wilfred Hughes
448972f8a3
Roll version
2023-07-26 20:02:23 +07:00
Wilfred Hughes
d58e3194c8
Move release logic to justfile
2023-07-26 20:01:25 +07:00
FW
06a2f6e71c
Merge pull request #94 from amaanq/fixes
...
Some scanner fixes
2023-07-27 03:53:13 +07:00
FW
f1be302f32
Merge pull request #93 from HerringtonDarkholme/main
...
feat: support unicode identifier
2023-07-27 03:46:50 +07:00
Amaan Qureshi
1a1b51823c
fix: mark `indent_vec_new` static
2023-07-26 20:55:52 +07:00
Amaan Qureshi
1b67cc0047
fix: mark `delimiter_vec_new` static
2023-07-26 20:54:10 +07:00
Amaan Qureshi
bae4cdccbf
fix: apply some clang-tidy lints
2023-07-26 20:27:56 +07:00
Amaan Qureshi
4ca44145dd
fix: mark helper functions static
2023-07-26 20:26:21 +07:00
Amaan Qureshi
d181a97381
fix: mark `scan` static to avoid naming conflicts with other scanners ( #6 )
2023-07-27 07:38:44 +07:00
Wilfred Hughes
0cb1cdbb3e
Document MSRV for newer bumpalo
2023-07-26 15:12:55 +07:00
Wilfred Hughes
65b235be28
Move to edition 2021
2023-07-26 15:06:21 +07:00
Wilfred Hughes
070dc3b4a5
Update crossterm version
...
This provides some minor bugfixes for Windows width detection:
https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md
This cherry-picks a525196635 , after the
MSRV bump.
2023-07-26 14:56:52 +07:00
Wilfred Hughes
b3acf48128
Bump minimum required Rust version to 1.58
...
Difftastic is generally conservative about MSRV, and will only
increase the version when there is a compelling reason (e.g. major
performance improvement, important bug fix in a dependendency).
This version increase will enable us to upgrade crossterm to 0.26, which
has better detection of terminal width on Windows.
I've also clarified MSRV details for other dependencies that cannot
currently be upgraded.
2023-07-26 11:34:05 +07:00
Wilfred Hughes
721ad0863d
Revert "Update crossterm version"
...
This reverts commit a525196635 .
Looks like it doesn't compile on Rust 1.57.
2023-07-26 11:17:50 +07:00
Amaan Qureshi
bbaa67a180
0.20.0
2023-07-26 05:48:29 +07:00
Amaan Qureshi
3c35178a65
chore: update CI action
2023-07-26 05:48:29 +07:00
Amaan Qureshi
32ed43a2b5
Merge pull request #126 from amaanq/fixes
...
Misc. Fixes
2023-07-26 04:58:24 +07:00
Amaan Qureshi
9269a4e124
fix: `#` and `!` can be used together at the start of a variable expansion
2023-07-26 04:41:28 +07:00
Amaan Qureshi
7f04387264
fix: words can be escaped with "\ "
2023-07-26 04:41:27 +07:00
Amaan Qureshi
d5d1ee8955
fix: add special chars allowed in variable expansions
2023-07-26 04:41:27 +07:00