Wilfred Hughes
f00b921de5
Add citation information
2021-11-23 09:52:39 +07:00
Wilfred Hughes
e0fa69ca6d
Expand and improve docstrings
2021-11-21 23:22:24 +07:00
Wilfred Hughes
4a9c6a5044
Improve docstrings in main.rs
2021-11-21 19:20:37 +07:00
Wilfred Hughes
1084e892be
Link in manual to rustdoc pages
2021-11-21 19:14:58 +07:00
Wilfred Hughes
e53b6f4212
Use rustdoc as subdir name
2021-11-21 19:03:13 +07:00
Wilfred Hughes
b64f7a47d7
Add rustdoc output to manual site
2021-11-21 18:56:51 +07:00
Wilfred Hughes
b5cfd08106
Remove unused function
2021-11-21 11:49:56 +07:00
Wilfred Hughes
3aae2eb398
Remove lib.rs so we're now a binary-only crate
2021-11-21 11:48:48 +07:00
Wilfred Hughes
19feab9045
Change entry point to be main.rs
...
Now that we've removed criterion, a binary-only crate is better, as we
get more unused function warnings.
2021-11-21 11:45:48 +07:00
Wilfred Hughes
85e9a849ba
cargo fmt
2021-11-21 11:42:13 +07:00
Wilfred Hughes
9d84dd6a4b
Make clippy happier
2021-11-20 14:55:35 +07:00
Wilfred Hughes
fd4c17ecf1
Configure atoms for Ruby
2021-11-20 14:46:12 +07:00
Wilfred Hughes
a5ed3fbd48
Add basic Ruby support
2021-11-20 01:08:33 +07:00
Wilfred Hughes
562634e6bc
Add 'vendor/tree-sitter-ruby/' from commit 'f1ff02772248786ed2ed08d827de2555912e777e'
...
git-subtree-dir: vendor/tree-sitter-ruby
git-subtree-mainline: fc8a9f8d50
git-subtree-split: f1ff027722
2021-11-20 00:39:11 +07:00
Wilfred Hughes
fc8a9f8d50
Try deploying to github pages instead
...
Surge works pretty well, but their servers seem slow (~1.3 seconds to
respond).
2021-11-20 00:15:35 +07:00
Wilfred Hughes
77242fd41f
Fix casing
2021-11-19 23:59:48 +07:00
Wilfred Hughes
7c5a0aec0c
Merge commit 'a03f1d2d1dfbf6f8e0fdca5f9ff030228241eb57'
2021-11-19 23:57:48 +07:00
Wilfred Hughes
153cc5eeca
Merge commit '203e239408d642be83edde8988d6e7b20a19f0e8'
2021-11-19 23:56:55 +07:00
Wilfred Hughes
f8427c6970
Merge commit 'fdeb68ac8d2bd5a78b943528bb68ceda3aade2eb'
2021-11-19 23:54:58 +07:00
Wilfred Hughes
4761f3872a
Add a command for tracking parser updates
2021-11-19 23:46:18 +07:00
Wilfred Hughes
7fdbaff6fe
Update build dependencies
2021-11-19 23:29:17 +07:00
Wilfred Hughes
7f6b8174d5
Update pretty_assertions and use consistently
2021-11-19 23:27:41 +07:00
Wilfred Hughes
9079567695
Update radix-heap
...
Upstream has had some optimisations and it saves 7% in instructions
executed for slow_before/slow_after.rs according to `perf stat`.
2021-11-19 23:20:37 +07:00
Wilfred Hughes
e8f45d91b8
Roll version
2021-11-19 00:49:14 +07:00
Wilfred Hughes
440ca8d0de
Style single-line display consistently with other displays
2021-11-19 00:31:55 +07:00
Wilfred Hughes
70f384652a
Remove dead code
2021-11-19 00:29:29 +07:00
Wilfred Hughes
c2570d379c
Don't truncate long lines on single-column display
2021-11-19 00:25:18 +07:00
Wilfred Hughes
e128e64b56
Colour line numbers on full file add/remove consistent with smaller changes
2021-11-19 00:21:54 +07:00
Wilfred Hughes
5708308e55
Don't let-bind variables outside that are only used in one pattern
2021-11-19 00:17:58 +07:00
Wilfred Hughes
204b85e273
Display file header for single-column (i.e. deletion/addition) changes too
2021-11-19 00:14:57 +07:00
Wilfred Hughes
8cb321ebf6
Document logging used for debugging
2021-11-19 00:06:09 +07:00
Wilfred Hughes
7ee37868a1
Make 1-indexed display of LineNumber values explicit
...
This fixes .. (or 'missing') line numbers on boundaries, where we'd
show too few dots after 10 or 100.
2021-11-18 23:24:39 +07:00
Wilfred Hughes
b65d9d8c90
Fix formatting
2021-11-18 23:21:22 +07:00
Wilfred Hughes
e9792db333
Remove duplicated definition
2021-11-18 23:15:50 +07:00
Wilfred Hughes
e1ffa2af2a
Prefer chain over manually building a vec
2021-11-18 23:11:46 +07:00
Wilfred Hughes
90122a6d3c
Also consider matched lines when calculating which lines to show after
...
After merging hunks, we may have lines on the opposite side.
2021-11-18 23:02:10 +07:00
Wilfred Hughes
f675ce3ecc
Add regression unit test for LHS/RHS bug in previous commit
2021-11-18 22:51:01 +07:00
Douglas Creager
f1ff027722
Merge pull request #193 from aibaars/pattern-matching
...
Pattern matching
2021-11-17 13:27:49 +07:00
Arthur Baars
73750085fe
Update highlights.scm
2021-11-17 18:01:21 +07:00
Arthur Baars
2ca1233331
Update generated code
2021-11-16 21:20:43 +07:00
Arthur Baars
76cbd1bb75
Add _expression and _simple_numeric to supertypes list
2021-11-16 21:20:43 +07:00
Arthur Baars
2a98a53b45
Add supertypes for pattern rules
2021-11-16 21:20:43 +07:00
Arthur Baars
d3955c7ae5
split case / case_match
2021-11-16 21:20:43 +07:00
Arthur Baars
df3a7ca99b
Add test cases
2021-11-16 21:20:43 +07:00
Arthur Baars
f7528122d6
Make grammar rules more tree-sitter-like
2021-11-16 21:20:37 +07:00
Wilfred Hughes
09eea0b93d
Fix column width calculation due to LHS/RHS typo
...
Fixes #57
2021-11-15 22:59:02 +07:00
Arthur Baars
00d4cdc038
Add pattern matching
2021-11-15 08:45:01 +07:00
Wilfred Hughes
56d6e4d814
Don't repeat the line number columns if they're identical
2021-11-14 22:44:01 +07:00
Wilfred Hughes
579d21eeb9
Only use a single column if hunk line numbers are <= 9
2021-11-14 22:33:39 +07:00
Wilfred Hughes
9d8d37957f
Use the max opposite line when computing after context
...
Previously we'd use the maximum line of the current side, leading us
to try to access nonexistent line numbers. This occurred when diffing
old/new.jsx from sample_files/.
2021-11-14 22:24:33 +07:00