Commit Graph

7620 Commits (b1b5e7d12cd28969ce1b5bbd5cf35203b7f26588)
 

Author SHA1 Message Date
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
Wilfred Hughes 308ad6bb3a Use blue for comments on light backgrounds
Cyan is pretty pale on my machine, even when not using the bright
version.
2022-01-29 18:10:27 +07:00
Wilfred Hughes 2ecbfb5676 Update screenshots to show new syntax highlighting 2022-01-29 17:54:36 +07:00
Wilfred Hughes 9a065b65e9 Fix unnecessary borrows 2022-01-29 16:55:28 +07:00
Wilfred Hughes dabaddd709 Discuss usage in --help 2022-01-29 16:32:53 +07:00
Wilfred Hughes 037b8bd6cc Use upper case for positional arguments in help too 2022-01-29 16:22:02 +07:00
Wilfred Hughes db1a356856 Use bright/normal line colours depending on background 2022-01-29 16:12:59 +07:00
Wilfred Hughes 36c4520025 Provide an environment variable for controlling background colour
Fixes #55
2022-01-29 16:07:31 +07:00
Wilfred Hughes c38b072fd2 Add a --background option
Improves #55
2022-01-29 15:58:51 +07:00
Wilfred Hughes 0abc839481 Consistent casing for argument value placeholders 2022-01-29 15:45:11 +07:00