Wilfred Hughes
afc78e976d
Document Erlang support and add test
...
Fixes #394
2022-12-15 23:30:45 +07:00
Wilfred Hughes
7b31be8adb
Improve binary file detection heuristics
...
Fixes #433
2022-12-08 10:29:35 +07:00
Wilfred Hughes
554fb18b7c
Fix interleaved output when diffing directories
...
Fixes #437
2022-12-08 09:58:19 +07:00
Wilfred Hughes
8e190677e7
Roll version
2022-11-14 00:30:56 +07:00
Wilfred Hughes
2e7c90c472
Ensure line wrapping uses the same length on both sides
...
Closes #421
2022-11-13 00:35:06 +07:00
Wilfred Hughes
b662a2220b
Apply upstream tree_magic_mini patch to fix blank line crash
...
Fixes #378
2022-10-31 00:54:24 +07:00
Wilfred Hughes
7f7b35441b
Ensure that inline display without color has newlines
...
This was broken in 3147eb8e6a when
newline splitting was made consistent, and
2071517621 only fixed the inline case
when color was enabled.
Fixed #383
2022-10-28 23:42:52 +07:00
Wilfred Hughes
28c3b0ef5d
Tweak line number styling to make it more distinct from content
...
Dim line numbers for unchanged lines, and make changed lines bold (in
addition to the existing red/green colours).
Closes #384
2022-10-28 20:34:36 +07:00
Wilfred Hughes
b9d44ae65f
Treat error nodes as atoms
...
Fixes #408
2022-10-15 22:50:08 +07:00
Wilfred Hughes
e91878fb32
0.37 is now released
2022-10-14 16:10:27 +07:00
Wilfred Hughes
6b0009c941
Mention perf improvements from #393 and #395
2022-10-14 13:50:00 +07:00
Wilfred Hughes
b4ff28c75e
Fix side-by-side line length when colour is disabled
...
Fixes #406
Looks like this was inadvertently broken in #301 .
2022-10-14 13:15:17 +07:00
Wilfred Hughes
b6ddd152d0
Add the ability to configure how many lines of context are shown
...
See #242
2022-10-13 12:34:52 +07:00
Wilfred Hughes
308a9c842a
Update changelog for Swift parser update
2022-10-09 16:02:19 +07:00
Wilfred Hughes
345a88fe53
Support - as a CLI argument
...
Fixes #389
2022-09-24 17:23:47 +07:00
Wilfred Hughes
b7e95d2b1d
Mention Chinese manual in changelog
2022-09-24 17:01:47 +07:00
Wilfred Hughes
ee688b43f2
--list-languages should respect --color
...
Fixes #387
2022-09-21 21:49:24 +07:00
Wilfred Hughes
c602503dec
Treat . as punctuation
...
Closes #388
2022-09-21 21:39:07 +07:00
Wilfred Hughes
f71ce08407
Don't assume that Windows is building on MSVC
...
The flag /utf-8 is supported by cl.exe, but gcc.exe interprets it as a
non-existent linker script.
2022-09-18 15:08:53 +07:00
Wilfred Hughes
88222e83c4
Prepare for patch release with fixed Windows build
2022-09-17 23:55:00 +07:00
Wilfred Hughes
d5ae17d3d5
Roll version following release
2022-09-17 20:18:59 +07:00
Wilfred Hughes
ba6d73bcf4
Document Hare in manual and changelog
2022-09-15 09:39:41 +07:00
Wilfred Hughes
3c51f58d8e
Add Pascal support
...
Fixes #365
2022-09-13 00:05:23 +07:00
Wilfred Hughes
23f6a15838
Update changelog for 888894d0f
2022-09-12 23:03:54 +07:00
Wilfred Hughes
aff584af46
Don't crash when the line split boundary is on a combining character
...
Fixes #358
2022-09-12 23:02:20 +07:00
Wilfred Hughes
f155a27522
Underline changed words in comments
...
This makes them easier to spot in larger changes.
Fixes #328
2022-09-10 15:54:04 +07:00
Wilfred Hughes
fe30b7d86b
Treat .zip files as binary unconditionally
...
Improves #358
2022-09-10 12:22:58 +07:00
Yuya Nishihara
84f0b25fb6
Add support for QML
...
QML is a UI language, and its syntax is basically JSON-like structure
+ JavaScript. The tree-sitter parser is named after the upstream grammar
file qmljs.g, but the canonical language name is QML. So I choose Qml as
the Language enum.
https://doc.qt.io/qt-6/qmlapplications.html
2022-09-10 11:38:35 +07:00
Wilfred Hughes
fe5ef8757d
Give novel punctuation a lower edge cost
...
We'd rather see an unchanged variable name than an unchanged comma.
Fixes #366
2022-09-09 09:47:53 +07:00
Wilfred Hughes
9695d0009e
Mention slider fix in changelog
2022-09-02 18:35:04 +07:00
Wilfred Hughes
e15244c8f6
Roll version
2022-09-02 18:24:08 +07:00
Wilfred Hughes
5b866f8db3
Fix extensions for language detection with Makefile syntax
2022-09-02 11:42:28 +07:00
Wilfred Hughes
fd571c98a7
Add a --list-languages option
...
Fixes #292
2022-09-02 11:41:05 +07:00
Wilfred Hughes
40dfd9eb29
Fix typo in .workflow extension name
2022-09-02 11:26:40 +07:00
Wilfred Hughes
a04f867557
Fix terminal width detection
...
This was previously fixed in
cb900c3463 (see commit message), but
broken in #341 .
Instead, use both term_size and terminal_size, to maximise our chances
that we can detect the width. Also comment the code with the relevant
terminal_size issue.
Fixes #346
2022-09-02 11:07:48 +07:00
Wilfred Hughes
8ff572d615
Copy crates.io note from the release info on 0.28
2022-09-01 09:18:32 +07:00
Wilfred Hughes
659f2dd6bd
Add support for Makefiles
2022-08-28 16:26:01 +07:00
Wilfred Hughes
b1b3756fa7
Attempt to detect and decode UTF-16 files too
...
Closes #345
2022-08-28 15:38:57 +07:00
Wilfred Hughes
1d1d883a9b
Roll version
2022-08-27 23:00:33 +07:00
Wilfred Hughes
a247218811
Set +whole-archive on C/C++ libraries
...
This fixes the build for Rust 1.61+ on some machines. I can reliably
reproduce this locally, but CI does not exhibit this issue (I'm not
sure why).
The Rust compatibility notes document this change:
https://github.com/rust-lang/rust/blob/1.61.0/RELEASES.md#compatibility-notes
and eventually this will be supported by cc:
https://github.com/rust-lang/cc-rs/pull/671
Fixes #339
2022-08-27 17:28:04 +07:00
Wilfred Hughes
09334030ab
Fix incorrect line number being used in side-by-side display
...
Fixes #334
2022-08-22 09:34:34 +07:00
Wilfred Hughes
f3420df1ca
Roll version
2022-08-21 22:05:04 +07:00
Wilfred Hughes
c957818514
Explore two graph nodes for each parenthesis position
...
This produces substantially better diff results, and fixes the 'last
item in the list shown as changed' problem.
This can produce slower diffing. typing_before.ml takes 10% more
instructions and slow_before.rs takes 110% more instructions.
2022-08-21 16:34:17 +07:00
Wilfred Hughes
515932151f
Merge branch 'cmake'
2022-08-20 18:36:07 +07:00
Wilfred Hughes
bbdc324b7f
Add CMake support
...
Fixes #333
2022-08-20 18:32:32 +07:00
Wilfred Hughes
58c8f47298
Also consider highlights.scm when marking nodes as comments
...
This removes the need to special-case Perl, and is necessary for
CMake (which has nodes bracket_comment and line_comment that aren't
marked as 'extra').
2022-08-20 18:28:07 +07:00
Wilfred Hughes
fb38e7a24f
Always use the RHS for language detection
...
Taking the longest path breaks if we have e.g. /dev/null and foo.py,
because foo.py is shorter.
2022-08-18 23:00:15 +07:00
Wilfred Hughes
01cce54978
Fix path display when called from git with two arguments
...
Fixes #332
2022-08-18 23:00:13 +07:00
Wilfred Hughes
5fe6d551d9
Always use the RHS for language detection
...
Taking the longest path breaks if we have e.g. /dev/null and foo.py,
because foo.py is shorter.
2022-08-18 22:58:43 +07:00
Wilfred Hughes
040dd3b0e2
Fix path display when called from git with two arguments
...
Fixes #332
2022-08-18 09:34:14 +07:00