Commit Graph

7679 Commits (d8cc1168b134caed857b041aee9d7f88de04f2d7)
 

Author SHA1 Message Date
Wilfred Hughes 67d296c47d Improve wording for textual diffing headers 2022-02-06 17:27:00 +07:00
Wilfred Hughes dd85457b5e Move options parsing into a separate file 2022-02-06 16:58:07 +07:00
Wilfred Hughes d0ce2baf14 Rename MatchKind variants to not assume comments 2022-02-06 16:50:57 +07:00
Wilfred Hughes 6a056e3630 Ensure textual diffs aren't highlighted as comments 2022-02-06 16:48:12 +07:00
Wilfred Hughes e2832dabb3 Set a maximum size on syntactic diffing, and use line diffing otherwise
Fixes #82
2022-02-06 16:38:55 +07:00
Wilfred Hughes da05d6e69d Use italics for comments 2022-02-06 15:06:35 +07:00
Wilfred Hughes 80ed279bb5 Run cargo-flamegraph with debug symbols 2022-02-06 14:39:55 +07:00
Wilfred Hughes d81b774621 Remove unused arguments 2022-02-06 14:37:22 +07:00
Wilfred Hughes 1873267ffa Prefer full module names when calling similar functions 2022-02-06 14:31:03 +07:00
Wilfred Hughes b1b5e7d12c Roll year 2022-02-05 15:58:45 +07:00
Wilfred Hughes a3055083c1 Highlight JS keyword in TS files
Fixes #126
2022-02-05 13:40:45 +07:00
Wilfred Hughes 9e48b64d2c Add a --missing-as-empty flag to allow non-existent paths
By default, difftastic now errors if paths don't exist.
2022-02-03 21:26:51 +07:00
Wilfred Hughes 635ef12f84 Clarify why we return early 2022-02-03 21:05:54 +07:00
Wilfred Hughes 0dcb76eec1 Report whether a binary file has changed
Fixes #119
2022-02-03 21:03:50 +07:00
Wilfred Hughes 3e9d506256 Highlight built-in constants too 2022-02-03 00:27:35 +07:00
Wilfred Hughes 9a630bc01b Expand hack highlighting query 2022-02-03 00:26:44 +07:00
Wilfred Hughes 7e7a4131f0 Configure atom nodes for Hack 2022-02-02 23:42:26 +07:00
Wilfred Hughes d0f8b49df1 Add basic syntax highlighting for Hack 2022-02-02 23:39:00 +07:00
Wilfred Hughes 3400a97a9d Add Scala to introduction in manual 2022-02-02 23:24:50 +07:00
Wilfred Hughes 726bdd8301 Fix duplicate function call from bad copy-pasting 2022-02-02 23:24:24 +07:00
Wilfred Hughes 43605bd5e8 Add support for Hack 2022-02-02 23:22:15 +07:00
Wilfred Hughes 22813808fe Add 'vendor/tree-sitter-hack/' from commit '4770eb21a36307c156cfd2555ddd8e10c304fdc3'
git-subtree-dir: vendor/tree-sitter-hack
git-subtree-mainline: 73c12d2b04
git-subtree-split: 4770eb21a3
2022-02-02 23:11:29 +07:00
Wilfred Hughes 73c12d2b04 Syntax highlight comments in Clojure and Common Lisp
These don't mark their comments as 'extra', but use the node kind
"comment" so it's easy to detect them.
2022-02-02 23:10:06 +07:00
Wilfred Hughes 27877e24f8 Test comment highlighting in Scala
Turns out that we don't need queries for comments, as we're already
using the is_extra() method for both parsing and highlighting.

Closes #120
2022-02-02 23:07:25 +07:00
Wilfred Hughes 34a1946197 Add sample clojure files 2022-02-02 23:07:11 +07:00
Wilfred Hughes 0eba3ecabe Update to the latest tree-sitter version
This is also a minor performance improvement (e.g. saves 1.3% time on
typing_old/new.ml or 3% on elisp_before/after.el).
2022-01-31 22:37:05 +07:00
Wilfred Hughes d1aa1d4925 Line up additions and removals if they affect more than one line 2022-01-31 22:23:58 +07:00
Wilfred Hughes 92c3836672 Clarify variable name 2022-01-31 22:20:14 +07:00
Wilfred Hughes 092b238fbd Prefer passing slices over vecs 2022-01-31 21:51:38 +07:00
Wilfred Hughes 7655ce069b Add a unit test for compact_gaps 2022-01-31 21:49:25 +07:00
Wilfred Hughes 52ef67ccbd Treat quoted_string in OCaml as an atom
Fixes #117
2022-01-31 21:41:53 +07:00
Wilfred Hughes 2f3db76bf8 Integration is adequate now
Git and Mercurial support is sufficient for most use cases, although
other git clients (e.g. magit) have no support yet.
2022-01-30 22:59:49 +07:00
Wilfred Hughes 5d34df3f33 cargo fmt 2022-01-30 22:58:38 +07:00
Wilfred Hughes 4d3fac20d9 Next release will be 0.19 2022-01-30 22:58:22 +07:00
Wilfred Hughes 8f6b269492 Tag a 0.18.1 release 2022-01-30 22:56:19 +07:00
Wilfred Hughes 01d6cb149f Fix compilation on Rust 1.54 2022-01-30 22:54:02 +07:00
Wilfred Hughes 3c05d979ba Add a helper script for doing releases 2022-01-30 18:04:03 +07:00
Wilfred Hughes 409f7aae75 Roll version 2022-01-30 18:03:45 +07:00
Wilfred Hughes 9b77d07e93 Store novel lines on hunks
This allows us to recognise lines that have only additions or only
removals, even if we've managed to find a matching opposite line.

Fixes #115
2022-01-30 17:53:13 +07:00
Wilfred Hughes ea24dd8784 Skip unchanged delim and find a fixpoint
This lets us discard more nodes before diffing, improving performance.

Fixes #84
2022-01-30 17:20:24 +07:00
Wilfred Hughes ad6898fdde Remove node detachment logic
We now only init the next/prev nodes for possibly changed nodes, so
this work is unnecessary.
2022-01-30 14:28:38 +07:00
Wilfred Hughes 4223dd883c Tweak comment wording 2022-01-30 14:25:15 +07:00
Wilfred Hughes 6aa7d59540 Expand and improve glossary 2022-01-30 14:22:42 +07:00
Wilfred Hughes 4fa00d5d11 Consistent casing in help 2022-01-30 11:22:11 +07:00
Wilfred Hughes 712f4c0bba Print a more helpful message when called with the wrong number of arguments 2022-01-30 11:16:25 +07:00
Wilfred Hughes 760b54e0cf Improve help text
Don't hard code the binary name, and use "you" consistently.
2022-01-29 23:24:45 +07:00
Wilfred Hughes 82ce1ab818 Add a --skip-unchanged flag
Closes #98
2022-01-29 23:06:42 +07:00
Wilfred Hughes 2d3b08cc0a Document loop parsing fix 2022-01-29 18:22:47 +07:00
Wilfred Hughes 7e3bdaf125 Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
Wilfred Hughes 2c5de5734b Use blue consistently for highlighting comments 2022-01-29 18:14:28 +07:00