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
0603b9fb23
Include LICENSE in crates.io source files
...
Closes #423
2022-11-13 00:13:47 +07:00
Wilfred Hughes
923989d1a8
clippy fixes
2022-11-03 22:18:56 +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
2a3346e338
Use apply_line_number_color consistently on LHS and RHS
...
Previously we missed a case on the LHS.
2022-10-28 20:18:17 +07:00
Wilfred Hughes
4d8d2a2f9d
Fix a clippy lint
2022-10-28 19:39:44 +07:00
Wilfred Hughes
1d6c7923e3
Replace remaining is_lhs booleans with Side arguments
2022-10-28 19:27:46 +07:00
Wilfred Hughes
7ea4b96a41
Prefer Side over booleans in line number styling
2022-10-28 19:14:06 +07:00
Wilfred Hughes
490787fe28
Factor out line number styling
2022-10-28 19:07:51 +07:00
Wilfred Hughes
c152c41691
Document punctuation atoms
2022-10-25 16:12:47 +07:00
Gurjeet Singh
cbfc70c0b5
Remove TreeSitterConfig.name from documentation
...
TreeSitterConfig doesn't seem to have the `name` attribute, anymore.
I discovered this discrepancy while integrating Markdown language parser
in PR #380 .
2022-10-24 23:06:20 +07:00
Wilfred Hughes
b9d44ae65f
Treat error nodes as atoms
...
Fixes #408
2022-10-15 22:50:08 +07:00
Wilfred Hughes
267b413f08
Fix unwanted cursor in screenshot
2022-10-14 22:04:48 +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
02f1cca444
Display stdin CLI arguments as "(stdin)"
...
This improves display for #389 , and makes language detection use
pattern matching on FileArgument rather than comparing literal
strings.
2022-10-14 13:46:30 +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
2a6eb7e4f8
Add Debug on SourceDimensions
2022-10-14 11:52:53 +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
a40d93e26c
Show possible and desired results in tricky cases manual section
2022-10-09 23:48:21 +07:00
Wilfred Hughes
308a9c842a
Update changelog for Swift parser update
2022-10-09 16:02:19 +07:00
Wilfred Hughes
5e84ccefae
Merge pull request #404 from alex-pinkus/upgrade-swift
...
Sync tree-sitter-swift with upstream
2022-10-09 16:00:58 +07:00
Wilfred Hughes
9e7c92eb57
Bump tree-sitter version
2022-10-09 14:59:30 +07:00
Alex Pinkus
c191f5cf47
Sync tree-sitter-swift with upstream
...
Fixes #277
The upstream parser has added new support for a variety of constructs,
including better tracking for `await`. Query load time has also been
substantially improved by simplifying the rules that match patterns.
2022-10-09 12:13:34 +07:00
Wilfred Hughes
dd0c78fefa
Remove setting that can be overridden with an environment variable
2022-10-09 11:25:57 +07:00
Wilfred Hughes
6630d5f480
Ensure highlighted text has contrast in all manual colour schemes
...
Fixes #374
2022-10-09 11:12:55 +07:00
QuarticCat
cd5ba54752
Reduce number of branches of Vertex::eq
2022-10-06 22:33:47 +07:00
QuarticCat
887dec7645
Remove field can_pop_either from Vertex
2022-10-06 22:31:48 +07:00
QuarticCat
7a8044696e
Simplify push_{lhs,rhs}_delimiter
2022-10-06 22:31:38 +07:00
Wilfred Hughes
42d9894ccb
Merge pull request #397 from arialdomartini/patch-1
...
20 known languages => 30
2022-10-01 19:15:02 +07:00
Arialdo Martini
bad57dbac5
20 known languages => 30
2022-10-01 22:33:32 +07:00
Wilfred Hughes
22c1d79a68
Merge pull request #396 from Ethkuil/master
...
Update README-zh-CN.md
2022-09-29 23:03:28 +07:00
Hobart Zhi-xin Lin
ef45eb40b6
Update README-zh-CN.md
...
fix image path
2022-09-30 12:30:54 +07:00
Wilfred Hughes
693b4c9e19
Consistent badge text
2022-09-28 23:21:47 +07:00
Wilfred Hughes
f8c2258024
Make manual translation more prominent
2022-09-28 23:21:11 +07:00
Wilfred Hughes
7e102e1386
Merge pull request #393 from QuarticCat/master
...
Some optimizations
2022-09-28 23:11:57 +07:00
Wilfred Hughes
b44a57733f
Merge pull request #392 from Yeegsing/translation
...
add a link to change the language version
2022-09-28 23:00:10 +07:00
QuarticCat
b88625d09b
Further simplify stack
2022-09-28 20:07:36 +07:00
QuarticCat
3b0edb43a1
Change a RefCell in Vertex to Cell
2022-09-28 05:56:53 +07:00
QuarticCat
2c6972c1b2
Fix more clippy warnings
2022-09-28 05:47:34 +07:00
QuarticCat
fa44d4cd5a
Fix the clippy::clone_double_ref warning
2022-09-28 05:36:08 +07:00
QuarticCat
d48ee2dfdb
Use a faster stack impl
2022-09-28 04:08:42 +07:00
QuarticCat
06b46e9355
Enable thin-LTO
2022-09-28 00:24:18 +07:00
Eric Tao
84f65bd838
Merge branch 'Wilfred:master' into translation
2022-09-27 08:42:58 +07:00
Wilfred Hughes
c638e8ab4b
Factor out a file argument type
2022-09-26 09:23:25 +07:00
Wilfred Hughes
40aa103275
Remove obsolete TODO
2022-09-25 12:53:14 +07:00
Wilfred Hughes
c3927fbb7b
Improve error message when trying to diff a directory against a file
2022-09-25 12:35:27 +07:00