Wilfred Hughes
cce7b2ee1b
Merge commit 'b466ffb4d7ce0a833754429ad8d3a02e950ed74c'
2024-04-28 23:00:00 +07:00
Wilfred Hughes
a5b2587eaa
Merge commit 'eb68645662a3f7bf7fdd4bcb9531585f54c8570e'
2024-04-28 22:54:18 +07:00
Wilfred Hughes
c2df185d49
Update Lua parser
...
Closes #701
2024-04-28 22:36:23 +07:00
Wilfred Hughes
50d90f6736
Add 'vendored_parsers/tree-sitter-lua/' from commit 'a24dab177e58c9c6832f96b9a73102a0cfbced4a'
...
git-subtree-dir: vendored_parsers/tree-sitter-lua
git-subtree-mainline: 9e44712cda
git-subtree-split: a24dab177e
2024-04-28 22:06:22 +07:00
Wilfred Hughes
9e44712cda
Remove old lua grammar
2024-04-28 22:06:00 +07:00
Wilfred Hughes
2e016566ac
Update CSS parser
2024-04-28 21:45:25 +07:00
Wilfred Hughes
688aaa83f8
Merge commit '02b4ee757654b7d54fe35352fd8e53a8a4385d42'
2024-04-28 17:32:23 +07:00
Wilfred Hughes
38f148df1f
Don't flatten error nodes
...
As of b9d44ae65f (released in 0.38), difftastic prefers a textual
diff if any parse errors are present. As a result, users have to
opt-in to allowing parse errors. We can now preserve structure to
produce diffs that are more granular, at the slight risk of changes
being missed if parsers discard tokens.
Fixes #703
2024-04-28 17:28:34 +07:00
Wilfred Hughes
7f5c11c075
cargo fmt
2024-04-28 16:40:00 +07:00
Wilfred Hughes
8655a9464e
Fix unwanted duplicate node in existing vec
...
Broken in previous commit. This is now only a few percentage points
performance win, but it's still a net improvement.
2024-04-28 16:35:40 +07:00
Wilfred Hughes
d15d593708
Move to smallvec for seen vertices
...
This is a surprisingly large perf win. On my Thinkpad:
typing_before/after.ml:
before: 3.038B instructions
after: 2.870B instructions
slow_before/after.rs:
before: 2.381B instructions
after: 1.260B instructions (!)
2024-04-28 16:16:47 +07:00
Wilfred Hughes
26e1ae40ef
Fix clippy lints
2024-04-28 16:09:54 +07:00
Steinar H. Gunderson
302570591f
Make Stack be allocated on the arena.
...
This fixes another memory leak, and also removes the need for
refcounting the Stack objects and the Node objects they point to.
2024-04-28 15:46:23 +07:00
Steinar H. Gunderson
4fb1478817
Fix memory leak in neighbours array.
...
Vertex is allocated on the arena, so it is never dropped;
then it cannot contain a Vec allocated on the regular heap
without leaking memory. Replace the Vec with a slice allocated
on the arena, which seems to fix most of the leaks. (Some may
remain; I haven't checked fully.) It should also be slightly
more memory-efficient.
It's not clear that we actually need the RefCell instead of
just putting Option directly into the structure, but I've
let it stay.
This issue was probably introduced in a71d6118cf .
2024-04-28 15:46:23 +07:00
Wilfred Hughes
7353a7926f
Try enabling ARM macos on CI
2024-04-28 15:23:45 +07:00
Wilfred Hughes
cafff7f128
Pin mac build to macos-12
2024-04-28 15:16:04 +07:00
Wilfred Hughes
d2cdb96e00
Expand man page and add to changelog
2024-04-28 15:07:23 +07:00
ObserverOfTime
b466ffb4d7
chore: fix crlf line endings
2024-04-28 04:25:52 +07:00
Wilfred Hughes
cb63ca8830
Write a basic man page
2024-04-27 16:21:17 +07:00
Manuel
5ade0bbe9c
readme: direct link to languages section
2024-04-25 07:23:49 +07:00
Wilfred Hughes
f52ca706f3
Enable --strip-cr by default
...
Line ending differences between input files often leads to confusing
diffs, so remove carriage returns unless explicitly requested.
Fixes #653
Fixes #696
2024-04-09 08:37:41 +07:00
Amaan Qureshi
eb68645662
fix: rename highlights query constant
2024-04-08 18:09:12 +07:00
Ivan Kuchin
287ddd7b42
Much shorter version of dlog alias
...
Use `-c` to set config instead of environment variable, so no need for building shell command
2024-04-08 08:39:49 +07:00
Wilfred Hughes
148ccf8be0
Add logos to homepage
2024-04-07 16:23:03 +07:00
Wilfred Hughes
bca6da38ce
Improve wording
2024-04-07 15:56:45 +07:00
Wilfred Hughes
b40e744a32
Clarify headings on internals pages
2024-04-07 15:55:49 +07:00
Wilfred Hughes
a7e2a3914f
Add favicon for manual
2024-04-07 15:54:29 +07:00
Amaan Qureshi
5c0024cfbb
ci: update workflows
2024-04-07 13:36:40 +07:00
Amaan Qureshi
174bc4405b
build: updating bindings and versions
2024-04-07 13:36:40 +07:00
Amaan Qureshi
cb83456794
chore: generate
2024-04-07 13:36:40 +07:00
Amaan Qureshi
b82ab803d8
refactor!: rework type parameters and interface type elements
2024-04-07 13:36:40 +07:00
Amaan Qureshi
e395081ba9
feat: support type instantiation expressions
2024-04-07 13:36:40 +07:00
Amaan Qureshi
a22761025c
chore: rename publish workflow
2024-04-05 08:52:41 +07:00
Wilfred Hughes
db281c682c
Roll version
2024-04-02 08:17:24 +07:00
Wilfred Hughes
00e837aeb1
Update changelog
2024-04-01 22:42:16 +07:00
Alexis (Poliorcetics) Bourget
573d607051
fix: diff hidden but non-ignored files when walking directories
2024-04-01 08:32:46 +07:00
Alexis (Poliorcetics) Bourget
1f79d16606
tests: show that hidden files are not picked up by difftastic
2024-04-01 08:32:46 +07:00
Pi-Cla
3b049c2fd0
run cargo update
2024-03-28 08:24:42 +07:00
Wilfred Hughes
b3732b9ebb
Merge pull request #684 from mbaitelman/patch-1
...
Update installation.md to include chocolatey
2024-03-26 19:51:34 +07:00
mbaitelman
d718d64a6e
Update installation.md to include chocolatey
2024-03-26 13:40:38 +07:00
Wilfred Hughes
415c591875
Merge pull request #638 from RBotfield/add-php-file-extensions
...
Add extra PHP file extensions to the language guesser.
2024-03-25 22:04:45 +07:00
Rhys Botfield
e096444e73
Merge branch 'Wilfred:master' into add-php-file-extensions
2024-03-25 19:04:49 +07:00
Wilfred Hughes
e34185f190
Consistent whitespace
2024-03-23 16:07:18 +07:00
Wilfred Hughes
ca472bf0f1
Merge pull request #671 from matthewhughes934/add-tab-completion-for-git-alias
...
Add tab completion for documented `dlog` alias
2024-03-23 16:03:29 +07:00
Wilfred Hughes
5aeddd79d4
Add missing from_source manual page
2024-03-22 15:48:31 +07:00
Rhys Botfield
e5e7d1cfb7
Format PHP extensions in guess_language.rs
...
To keep rustfmt happy
2024-03-22 21:32:25 +07:00
Wilfred Hughes
caf8760deb
Merge pull request #672 from emaste/freebsd
...
Add FreeBSD installation instructions
2024-03-22 08:04:42 +07:00
Ed Maste
59d20674f4
Add FreeBSD installation instructions
2024-03-22 10:13:29 +07:00
Matthew Hughes
f984413e6b
Add tab completion for documented `dlog` alias
...
There's a feature of Git's completion scripts that allows
completing function aliases[1]:
> If you use complex aliases of form '!f() { ... }; f', you can use the null
> command ':' as the first command in the function body to declare the desired
> completion style
This allows completion:
$ git dlog --pat<tab>
--patch --patch-with-raw --patch-with-stat --patience
Tested on `bash`, though I believe this should also work with `zsh` and
`tsch` since their respective completion scripts also make use of the
`bash` one
[1] https://git.kernel.org/pub/scm/git/git.git/tree/contrib/completion/git-completion.bash?id=11c821f2f2a31e70fb5cc449f9a29401c333aad2#n26
2024-03-22 08:20:56 +07:00
Wilfred Hughes
dd7a0c87ee
Merge pull request #665 from opakapaka2003/opakapaka2003-patch-1
...
Update installation.md
2024-03-21 10:15:32 +07:00