Wilfred Hughes
1a93162740
Fix block sclars in YAML
2022-04-14 18:45:48 +07:00
Wilfred Hughes
47fe0cfc42
Add some more common keyword-ish capture names for highlighters
2022-04-14 00:40:09 +07:00
Wilfred Hughes
059fc824ff
Add Kotlin support
...
Closes #220
2022-04-14 00:21:29 +07:00
Wilfred Hughes
92b3c6e932
Use clap's built-in env var feature
...
Fixes #239
2022-04-12 23:57:20 +07:00
Wilfred Hughes
f496da2d1e
Difftastic is now available as GitHub releases
...
Closes #193
2022-04-10 15:58:42 +07:00
Wilfred Hughes
a43adb2f4b
Document build fixes in 0.26.2
2022-04-10 13:00:14 +07:00
Wilfred Hughes
890c28a5ac
Update changelog for 0.26.1
2022-04-10 12:39:15 +07:00
Wilfred Hughes
1830d286e0
Ensure unchanged MatchedPos have the same number on LHS and RHS
...
Fixes #246
2022-04-09 21:12:31 +07:00
Wilfred Hughes
1c9ae2fbc6
Fix parsing of built-in Zig identifiers
...
Fixes #248
2022-04-09 19:38:07 +07:00
Wilfred Hughes
3c6db050dc
Roll version
2022-04-09 19:01:54 +07:00
Wilfred Hughes
053de5acbe
Update to Clojure parser with separate symbol positions
...
See discussion in https://github.com/sogaiu/tree-sitter-clojure/issues/21
2022-04-09 12:41:49 +07:00
Wilfred Hughes
2162b5c67b
Add a changelog entry for 42884b73a0
...
Some users seem to be seeing this build failure, e.g. #245 .
2022-04-08 22:40:10 +07:00
Wilfred Hughes
1c416733ef
Fix nested sliders in C-like languages
...
Improves #165
2022-04-08 09:41:56 +07:00
Wilfred Hughes
bdb68cd676
Support @boolean and @character highlighting queries
2022-04-03 22:36:15 +07:00
Wilfred Hughes
0c1e539373
Update CHANGELOG and manual for new languages
2022-04-03 22:10:09 +07:00
Wilfred Hughes
01678f8556
Don't pad the right column in side-by-side display
...
Helps with #209 too.
2022-04-03 11:30:19 +07:00
Wilfred Hughes
03b8a4cb5a
Update changelog and parser docs for recent additions
2022-04-02 17:21:39 +07:00
Wilfred Hughes
28c6e35943
Merge #205
2022-04-02 17:18:59 +07:00
Wilfred Hughes
e472acb805
Add a --language option to override language detection
...
Fixes #199
2022-04-01 23:10:48 +07:00
Wilfred Hughes
97b9a13d15
Expose a proper `--display` CLI option
...
This helps with discovery of the different display options available,
such as inline (see #34 ).
2022-04-01 22:15:24 +07:00
Jacob Rothstein
9945270f4b
add gleam
...
# Conflicts:
# CHANGELOG.md
# README.md
2022-03-31 14:08:05 +07:00
Wilfred Hughes
bef93e9626
Roll version
2022-03-31 09:47:58 +07:00
Wilfred Hughes
299c321e72
Treat interpolated strings as atoms in PHP
...
This makes diffing slightly less useful for large strings, but it's
consistent with the other languages.
2022-03-31 09:34:03 +07:00
Wilfred Hughes
a1ec5e88e8
Fix side-by-side display when source contains CRLF
...
Fixes #212
2022-03-31 09:32:21 +07:00
Wilfred Hughes
559d0f9b6b
Fix Java delimiters `[` and `]`
2022-03-30 23:23:44 +07:00
Wilfred Hughes
5703f75568
Don't assume that lines end with newlines
...
Previously we would crash if the last line in a file had no trailing
newline and ended with a multibyte character.
Closes #217
2022-03-30 22:42:17 +07:00
Wilfred Hughes
ff37192918
Update changelog for last commit
2022-03-30 20:56:12 +07:00
Wilfred Hughes
ecdf993ff1
Add support for Nix
...
Closes #196
2022-03-29 22:46:09 +07:00
Jafar
eb29b824c3
Merge branch 'master' into pr-add_lua_parser
2022-03-30 06:23:20 +07:00
JafarAbdi
b850d41fa5
Add lua support
2022-03-30 06:21:10 +07:00
Wilfred Hughes
646ab39cbb
Mention that Janet is supported
2022-03-29 19:50:25 +07:00
Wilfred Hughes
f26ca24df7
Discard '\n' nodes in C and C++
...
These are from the preprocessor grammar rules, but they're not useful
for difftastic.
Reported upstream: https://github.com/tree-sitter/tree-sitter-c/issues/97
Closes #180
2022-03-27 23:37:23 +07:00
Wilfred Hughes
b6cd8c9a42
Update Clojure highlighting to match upstreamed PR
...
See https://github.com/sogaiu/tree-sitter-clojure/pull/20
2022-03-26 23:50:55 +07:00
Wilfred Hughes
1d7324c2dc
Clarify wording when a parsed file has no changes at all
2022-03-26 23:31:12 +07:00
Wilfred Hughes
92b9680ecd
Define a scala.scm of highlighting queries
2022-03-26 23:26:21 +07:00
Wilfred Hughes
5b1bc62ac6
Don't show hunk numbers when there's only one hunk
...
Related: #60
2022-03-26 22:52:04 +07:00
Wilfred Hughes
bacefe5a58
Roll version
2022-03-26 16:02:51 +07:00
Wilfred Hughes
2b36a755f0
Ensure that blank lines in multiline strings are shown as changed
...
Fixes #121
2022-03-23 22:47:17 +07:00
Wilfred Hughes
f15ec6d637
Lower the default node limit for tree diffing
...
Fixes #176
2022-03-22 21:15:54 +07:00
Wilfred Hughes
4647112e93
Define a highlighting file for Clojure
...
This isn't provided upstream, and the parse tree doesn't have a lot of
information, but we can at least handle string literals and keywords.
2022-03-22 21:08:46 +07:00
Wilfred Hughes
c9c3582871
Print incrementally when diffing directories
...
Fixes #170
2022-03-22 09:51:23 +07:00
Wilfred Hughes
9e32e2e08e
Ensure matched lines includes blanks at the ends of the file
...
Fixes #163
2022-03-20 22:31:32 +07:00
Wilfred Hughes
68f3ab2b92
Don't consider lines with whitespace to have missing syntax
...
Fixes #171
2022-03-20 19:49:13 +07:00
Wilfred Hughes
12ee2c7673
Warn if both arguments are the same path
...
Fixes #164
2022-03-20 15:14:14 +07:00
Wilfred Hughes
2fd48800c7
Update changelog for previous commit
2022-03-20 15:06:13 +07:00
Ömer Sinan Ağacan
a2488f984c
Add support for Dart
2022-03-20 11:07:32 +07:00
Wilfred Hughes
9435798c9c
Next release will be 0.24
2022-03-19 10:27:04 +07:00
Wilfred Hughes
06ffa0267a
Next release will be a patch release with a single crash fix
2022-03-19 10:24:30 +07:00
Wilfred Hughes
d06f357c93
Fix crash when outer delimiters are discarded when skipping unchanged
...
If we skip some nodes inside a list whose delimiters are unchanged, we
need to mark the outer list as unchanged.
Split ChangeState::Unchanged into UnchangedNode and UnchangedDelimiter
to make this clearer, and add a test.
2022-03-18 16:00:05 +07:00
Wilfred Hughes
b5187d98d0
Roll version
2022-03-17 22:22:42 +07:00