Commit Graph

14622 Commits (a9be2fefa781453242e72c0a95f2da52517e7eae)
 

Author SHA1 Message Date
Wilfred Hughes a9be2fefa7 Remove awkard CRLF file from vendored parser 2024-04-28 23:43:26 +07:00
Wilfred Hughes 4dc541b261 Merge commit '72fd00128f1c38319670cbf4bcedbba0dc849d96' 2024-04-28 23:42:03 +07:00
Wilfred Hughes b4ff51f6ac Update URL to Lua parser 2024-04-28 23:34:12 +07:00
Wilfred Hughes 27fb722ac7 Merge commit '1aafaff4d26dac5a36dd3495be33e1c20161d761' 2024-04-28 23:31:25 +07:00
Wilfred Hughes 5c40cd0282 Prefer _1 and _2 naming for test files
This is less to type, and it's now alphabetical, so e.g.
sample_files/*.kt just works as a test argument.
2024-04-28 23:28:06 +07:00
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
Amaan Qureshi 72fd00128f
0.22.0 2024-04-14 21:38:58 +07:00
Amaan Qureshi f3d2757f11 chore: generate 2024-04-14 16:03:44 +07:00
Amaan Qureshi f8efc57abe feat: support reference declarators in types 2024-04-14 16:03:44 +07:00
Amaan Qureshi 60d357fc70 feat: add optional attribute declarations after 'namespace' 2024-04-14 16:03:44 +07:00
Amaan Qureshi 1c3c93d727 feat: support pure virtual destructors 2024-04-14 16:03:44 +07:00
Amaan Qureshi aa79a170c6 fix: specifier and virtual do not strictly require each other 2024-04-14 16:03:44 +07:00
Amaan Qureshi f79b9d9859
fix(scanner): only call memcpy if `length` is greater than 0 2024-04-11 21:23:17 +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 1aafaff4d2
build: update bindings 2024-04-07 02:34:11 +07:00
Amaan Qureshi 04a59ee59f
ci: add dependabot 2024-04-07 01:48:43 +07:00
Amaan Qureshi 036537490b
fix(build): repo url & pyproject authors 2024-04-07 01:22:15 +07:00
Amaan Qureshi 5c3ab3a9ef
chore: rename publish workflow 2024-04-05 08:52:57 +07:00
Amaan Qureshi a22761025c
chore: rename publish workflow 2024-04-05 08:52:41 +07:00
ObserverOfTime d33e20be29 ci: update workflows 2024-04-05 08:27:35 +07:00