Commit Graph

1873 Commits (c73b18be77ca73e461a991bf8d30a8c5f95af597)

Author SHA1 Message Date
Wilfred Hughes c73b18be77 Use tree-sitter-css from crates.io 2024-12-20 09:00:04 +07:00
Wilfred Hughes 4873e87dac Use tree-sitter-html from crates.io 2024-12-20 08:55:33 +07:00
Wilfred Hughes 507b60bc45 Use tree-sitter-json from crates.io 2024-12-20 08:49:09 +07:00
Wilfred Hughes eb0b47d403 Use tree-sitter-php from crates.io 2024-12-20 08:36:36 +07:00
Wilfred Hughes f9d663ea9f Use tree-sitter-bash from crates.io 2024-12-20 08:32:54 +07:00
Wilfred Hughes 7e8974e295 Use tree-sitter-go from crates.io 2024-12-20 08:29:30 +07:00
Wilfred Hughes 15b9590db5 Use tree-sitter-julia from crates.io 2024-12-20 08:25:23 +07:00
Wilfred Hughes d2ed2f6123 Use tree-sitter-java from crates.io 2024-12-20 08:18:17 +07:00
Wilfred Hughes 776d978f09 Use tree-sitter-typescript from crates.io 2024-12-20 00:09:12 +07:00
Wilfred Hughes 88731f932d Use tree-sitter-javascript from crates.io 2024-12-20 00:02:14 +07:00
Wilfred Hughes db379cf94d Use tree-sitter-c and tree-sitter-cpp from crates.io 2024-12-19 23:50:23 +07:00
Wilfred Hughes 6ea71e6983 Use tree-sitter-python from crates.io 2024-12-19 23:38:43 +07:00
Wilfred Hughes 2bbed44664 Use tree-sitter-c-sharp from crates.io 2024-12-19 23:21:26 +07:00
Wilfred Hughes de6e6707d2 Use tree-sitter-ocaml from crates.io 2024-12-19 23:14:12 +07:00
Wilfred Hughes 919f15344f Use tree-sitter-objc from crates.io 2024-12-19 23:00:43 +07:00
Wilfred Hughes 913aee1c07 Use tree-sitter-scala from crates.io 2024-12-19 22:56:33 +07:00
Wilfred Hughes a9ed8bf5a1 Use tree-sitter-ruby from crates.io 2024-12-19 22:49:30 +07:00
Wilfred Hughes 79bdf87c97 Remove old vendored haskell parser 2024-12-19 22:41:54 +07:00
Wilfred Hughes bbe4890cfd Use tree-sitter-haskell from crates.io 2024-12-19 22:33:28 +07:00
Wilfred Hughes 943ea4b613 Bump tree-sitter to 0.24.x 2024-12-19 22:22:12 +07:00
Wilfred Hughes 649c557708 Fix some clippy lints 2024-12-19 21:29:31 +07:00
Wilfred Hughes 831cd1e522 bump tree-sitter version 2024-12-19 21:11:55 +07:00
Wilfred Hughes 5c29f90bc0 Fix deprecated clap actions 2024-12-15 14:52:46 +07:00
Wilfred Hughes c59300c463 Fix some clap deprecated API usage 2024-12-15 14:47:07 +07:00
Wilfred Hughes 3ed255ac8f Set actions to prepare for clap4 migration 2024-12-15 14:29:36 +07:00
Wilfred Hughes 9a8889dc4b Remove call that had no side effect 2024-11-26 01:43:03 +07:00
Wilfred Hughes 00f6959a29 Ensure JSON output is consistently ordered
Closes #780
2024-11-15 23:17:27 +07:00
Wilfred Hughes 3a1e398edc Improve handling of named pipe arguments
Use display_name in more places, and prefer file names with extensions
when we have two arguments.

Fixes #783
2024-11-15 23:11:25 +07:00
Wilfred Hughes 956b09a63e Remove another mention of old flag name 2024-11-15 22:54:58 +07:00
Wilfred Hughes 430db0efc5 Update options parsing for new flag spelling 2024-11-15 22:51:48 +07:00
Wilfred Hughes 39e645832e Fix compilation on older Rust versions 2024-11-15 22:08:15 +07:00
Wilfred Hughes 90f108105d The syntax is dot, not dotty 2024-11-15 22:04:07 +07:00
Wilfred Hughes 13b8252d8b Fix typo 2024-11-14 23:41:35 +07:00
Wilfred Hughes d5b1e26d70 Add a debug helper for syntax tree as DOT 2024-11-14 22:55:00 +07:00
Wilfred Hughes 4df51dc57c Improve syntax highlighting on tree-sitter lists that are just keywords
Closes #777
2024-11-15 00:03:30 +07:00
Wilfred Hughes 819a672df8 Clarify content ID in debug output on Syntax 2024-11-15 00:03:30 +07:00
Wilfred Hughes 1c0dd04ef1 Allow debug printing of HighlightedNodeIds 2024-11-15 00:03:30 +07:00
Wilfred Hughes 549cb483fe Fix crash due to trailing newlines in string nodes at EOF
Fixes #782
2024-11-15 00:03:30 +07:00
Wilfred Hughes 05378e4554 Silence a clippy lint 2024-10-23 08:51:13 +07:00
Wilfred Hughes 618d8dd8ad Distinguish version and short version metadata to make --help clearer
Fixes #774
2024-10-23 08:44:28 +07:00
Wilfred Hughes c396bb0102 Note on ASCII assumptions in content_max_width 2024-10-21 22:57:01 +07:00
Wilfred Hughes 511b7579fb Fix min() which should be max() 2024-10-21 22:53:28 +07:00
Wilfred Hughes 845bbeafff Cap the maxmimum size of columns in side-by-side display 2024-10-21 09:04:29 +07:00
Wilfred Hughes 8b2b94a458 Clarify name 2024-10-21 08:39:03 +07:00
Wilfred Hughes 8cdb59fa5e Normalise newlines before diffing
This produces good, consistent results on different trailing newlines
before, consistent with the behaviour before 7edd2a82cd (see #755).
2024-10-21 08:34:39 +07:00
Wilfred Hughes 7edd2a82cd Always consider newlines when diffing lines
StringIgnoringNewline caused crashes in code that assumed that two
equal values would hav the same string length.

This reverts 86612798ad. A better
approach would be to normalise line endings before diffing, but
additionally print whether files have/lack trailing newlines.

Fixes #755
2024-10-15 08:46:34 +07:00
Wilfred Hughes 2dd4f7e912 Add doc comment 2024-10-15 08:37:18 +07:00
Mateusz Radomski 663590a3b2 Atomize hex and unicode string literals in Solidity
Without this, changes inside these string types are not taken into
consideration when performing the diff.
2024-10-02 08:18:40 +07:00
Wilfred Hughes a31948384b Tweak name to reflect git internals conventions 2024-09-22 20:09:04 +07:00
Andreas Deininger 5ecf3c1eb2 Bump GitHub action workflows to their latest versions 2024-09-11 21:22:59 +07:00