Commit Graph

10555 Commits (beacd69dd27f26bdb4c19c8806a786098ff05a06)
 

Author SHA1 Message Date
Lukas Pistrol 4140d566eb added spm support 2022-05-30 01:14:17 +07:00
Wilfred Hughes 426ce9751f Defer edge calculations
This saves 1.3% instructions and 7% peak memory usage (because the
predecessors hash map has smaller size values).
2022-05-29 11:32:44 +07:00
Wilfred Hughes 1f481496ff Factor out debug logging from shortest_path
This makes the core logic clearer
2022-05-29 10:01:42 +07:00
Wilfred Hughes 39be777a13 Prefer a complete sentence 2022-05-29 09:57:54 +07:00
Wilfred Hughes 96c550d0ab No longer using Rc for HashMap 2022-05-28 19:18:33 +07:00
Wilfred Hughes 4f8a8a8197 This function does not need to be pub 2022-05-28 10:09:54 +07:00
Wilfred Hughes f028b46003 cargo fmt 2022-05-25 09:35:28 +07:00
Wilfred Hughes 081b6fbe64 Move more into display/ 2022-05-25 09:33:53 +07:00
Wilfred Hughes d4285bed7c Move more files into diff/ 2022-05-25 09:31:12 +07:00
Wilfred Hughes c5fe152f25 Define a parse submodule 2022-05-25 09:28:12 +07:00
Jonathan Arnett d7861b2a4b
Change constructor tracking to not use type (#29) 2022-05-24 15:45:09 +07:00
Jonathan Arnett aed23b28dd
Differentiate data constructor names from type names (#28) 2022-05-24 14:37:32 +07:00
Wilfred Hughes 373d7d9d81 Define a diff submodule 2022-05-24 09:33:47 +07:00
Wilfred Hughes 8fe0fc13b5 Define a display submodule 2022-05-24 09:25:06 +07:00
Yoann Padioleau 30962d1b47
Merge pull request #112 from raghav-deepsource/sealed-classes
Sealed classes
2022-05-24 14:11:20 +07:00
Raghav Shankar 2d800aad2d
Add generated files 2022-05-24 14:08:14 +07:00
Raghav Shankar 4548c60eac
Support sealed types 2022-05-24 14:03:30 +07:00
Wilfred Hughes 43a03d2939 Tweak slogan to clarify that difftastic understands structure
"Understands syntax" is sometimes confused with syntax highlighting.
2022-05-23 23:39:15 +07:00
Wilfred Hughes 57a4b6d6ce Update dependencies 2022-05-23 22:36:37 +07:00
Wilfred Hughes df927eb713 Update pretty_assertions 2022-05-23 22:31:08 +07:00
Wilfred Hughes 1d4293864b Prefer a bump allocator for graph vertices
This reduces instruction counts by around 14%.
2022-05-23 09:38:13 +07:00
Jonathan Arnett 17ed183fc8
Fix for comment-in-string bug (#27)
Nodes defined in `extras` can be expected before an node. Thus, `comment` could be expected before `escape_sequence` or `quoted_content`; aka inside of a string. Naturally, this makes no sense.

I tried wrapping `escape_sequence` and `quoted_content` in `token.immediate` to resolve the issue, but it had no effect (maybe is specific to whitespace?). Instead, I found success in largely copying [`tree-sitter-rust`'s solution of using an external scanner for string content](9a6d980afb/src/scanner.c (L27-L40)).
2022-05-23 00:17:07 +07:00
Matt Massicotte 368736a613
Semantic capture names (#26) 2022-05-22 14:37:14 +07:00
Wilfred Hughes 1fefc2740a Preallocate the predecessors hashmap to reduce rehashing/reallocations
This reduces instruction counts by 4-6% on the sample files.

Thanks to @Enter-tainer for suggesting this in #290.
2022-05-21 23:31:26 +07:00
Wilfred Hughes 1646d456f4 Arena allocate vertices
This reduces the instruction count by 4% on larger files, such as
slow_before/after.rs.

Co-authored-by: mgt <mgt@oi-wiki.org>
2022-05-21 22:24:19 +07:00
Benjamin Sobel 6fc75e0478 assignment changes 2022-05-21 14:45:10 +07:00
Benjamin Sobel e674ad71d8 mult operator fixes 2022-05-21 14:39:44 +07:00
Benjamin Sobel cf0b6d92bf even more fixes 2022-05-21 14:15:24 +07:00
Benjamin Sobel 5e5d9533b5 fixes and tests 2022-05-21 12:33:29 +07:00
Wilfred Hughes f7aa78bd2b
Merge pull request #282 from Xuanwo/ci-improve
ci: Adopt rust-toolchain instead
2022-05-21 10:16:18 +07:00
Wilfred Hughes 6970b443b0 Document MIME database configuration and paths 2022-05-19 23:19:54 +07:00
Owen Shepherd 1b54c3f394
Don't panic if we can't serialize our state (#80) 2022-05-19 19:09:09 +07:00
Wilfred Hughes 64d65ad08a
Merge pull request #281 from Xuanwo/binary-content
feat: Improve binary content guess
2022-05-18 23:50:01 +07:00
Michael Davis ec0286fd84
use `function` node as a scope rather than `function_body` (#26) 2022-05-17 16:43:45 +07:00
Wilfred Hughes 0276886b52 Fix copy-paste confusing variable name 2022-05-14 11:58:24 +07:00
Wilfred Hughes 3da3d9eef4 More FxHashMap usage 2022-05-14 11:53:45 +07:00
Wilfred Hughes 6a0858af11 Prefer FxHashMap over HashMap in more places 2022-05-14 11:49:30 +07:00
Wilfred Hughes bfb2a5035c Pass DisplayOptions in more places 2022-05-13 19:48:26 +07:00
Linda_pp 67d33d619e
Fix `//` in string literal is parsed as comment token (#24)
* Fix `//` in string literal is parsed as comment token

* Add regression test case for parsing comments in string literals
2022-05-12 23:07:45 +07:00
Linda_pp faf81d2fb9
Fix repository link in Cargo.toml (#22) 2022-05-12 14:30:30 +07:00
Wilfred Hughes 3eada5b9b0 Prefer outer delimiter in lisps 2022-05-11 11:54:02 +07:00
Wilfred Hughes ca1dbbc264 Update expected output file for 902c30f6c 2022-05-11 11:45:48 +07:00
Wilfred Hughes a454ef57ce Add more module docs 2022-05-11 11:32:03 +07:00
Wilfred Hughes 902c30f6cf Only print rename information when we're called from git
If the user explicitly runs `$ difft old.js new.js` there's no point
talking about renames.
2022-05-10 09:37:36 +07:00
Wilfred Hughes 8e48c303dc Clarify which manual pages are focused on internals 2022-05-09 20:27:33 +07:00
Wilfred Hughes 1ae5404dbd Treat languages supported as a top-level manual section 2022-05-08 13:12:03 +07:00
Seokchan Sean Ahn b9244aa348 Update getting_started.md 2022-05-08 13:07:24 +07:00
Seokchan Sean Ahn 7fa0a2e830 Add homebrew installation guide 2022-05-08 13:07:24 +07:00
Wilfred Hughes 1a6c5b8e7f Display rename information when before and after paths are different 2022-05-08 11:52:42 +07:00
Xuanwo 9e1c76bc65
Update rust-toolchain.toml
Co-authored-by: Wilfred Hughes <me@wilfred.me.uk>
2022-05-08 02:48:12 +07:00