Commit Graph

497 Commits (8b382e435655e02d3ee4718afe42dff1eb8ce68b)
 

Author SHA1 Message Date
Wilfred Hughes 8b382e4356 Improved OCaml handling
Fixes #17
Fixes #15
2021-07-13 22:52:13 +07:00
Wilfred Hughes 74c2b8e901 Clarify slider and performance status 2021-07-13 22:31:13 +07:00
Wilfred Hughes 3250fc6f84 Prefer novel nodes that follow another novel node 2021-07-13 22:19:21 +07:00
Wilfred Hughes ba645cfe2a Track whether nodes had a previous novel line 2021-07-13 22:16:57 +07:00
Wilfred Hughes fbb2dffd4a Store an ID on Syntax values and use it for vertex equality 2021-07-13 21:49:40 +07:00
Wilfred Hughes 8c1384368a Improve comment 2021-07-11 11:59:53 +07:00
Wilfred Hughes d689dbbbff Prefer positive route distances
It's easier to reason about.
2021-07-11 11:46:26 +07:00
Wilfred Hughes ac5098301c Fix wording in comment 2021-07-11 11:42:58 +07:00
Wilfred Hughes 4c3925f12c rustfmt 2021-07-10 17:58:34 +07:00
Wilfred Hughes a47e278b48 Consider nesting levels on lists too 2021-07-10 17:56:00 +07:00
Wilfred Hughes b2d9035774 Consider nesting depth when comparing nodes 2021-07-10 17:42:02 +07:00
Wilfred Hughes ab07c6b171 Factor out a single init_info helper 2021-07-10 17:28:10 +07:00
Wilfred Hughes 19f090c22b Define a .info() helper function on Syntax values 2021-07-10 17:13:23 +07:00
Wilfred Hughes 5c644baf7c Treat .. as a single atom in Rust 2021-07-10 17:13:07 +07:00
Wilfred Hughes ef4a39ef4f Store num_ancestors in syntax tree info too 2021-07-10 16:51:13 +07:00
Wilfred Hughes 63804ab09f Factor out fields that are common to List and Atom 2021-07-10 16:08:38 +07:00
Wilfred Hughes e5bcf62adb Use atom creator helper in tests 2021-07-10 15:06:59 +07:00
Wilfred Hughes 55d3f6d9e4 Define separate helpers for new atoms and new comments 2021-07-10 13:42:40 +07:00
Wilfred Hughes 48ed9d71ff Tweak method name 2021-07-10 13:35:13 +07:00
Wilfred Hughes 3dd0521a04 Track if atoms are comment, but nothing else 2021-07-10 13:26:54 +07:00
Wilfred Hughes 9cb748d180 Adding TODO 2021-07-09 23:44:33 +07:00
Wilfred Hughes 4cf2a24997 Fixed crash on multibyte characters that include '\n'
Fixes #13
2021-07-09 23:37:04 +07:00
Wilfred Hughes bbc77b8cbc Organise changelog by area 2021-07-09 23:35:53 +07:00
Wilfred Hughes ca4f35c8a8 Don't talk about syntactic changes in plain text mode 2021-07-09 23:28:45 +07:00
Wilfred Hughes ce35a5cc3a Support $( ... ) and $foo in Rust
Closes #14
2021-07-09 22:54:11 +07:00
Wilfred Hughes 953642797c Tweak 'no changes' message to be clarify we ignore whitespace 2021-07-09 22:45:47 +07:00
Wilfred Hughes 1dc6ab3977 Fix crash when diff touches first line 2021-07-08 01:10:37 +07:00
Wilfred Hughes 31e358a7c6 Expand README since difftastic has hit HN 2021-07-08 01:01:21 +07:00
Wilfred Hughes 22e4c87e00 Add regression test for matched lines not in the displayed range 2021-07-07 23:47:37 +07:00
Wilfred Hughes 094133fe10 Ensure that we display all context lines, even if matched pairs are unordered 2021-07-07 23:45:22 +07:00
Wilfred Hughes 686d1475a6 Drop failing test for atoms on the same line
It's distracting seeing a continuously failing test, and the
track_previous_novel branch is tracking this still.
2021-07-07 22:48:00 +07:00
Wilfred Hughes 9e821956a5 Roll version 2021-07-07 22:25:03 +07:00
Wilfred Hughes 6f87140703 Don't crash if file is unchanged
Fixes #4
2021-07-07 22:19:46 +07:00
Wilfred Hughes 3e199ed645 Treat && || ++ -- and * as single tokens in JS 2021-07-07 22:13:23 +07:00
Wilfred Hughes c43e724caf Ensure :: is treated as a single token in Rust 2021-07-07 22:02:20 +07:00
Wilfred Hughes da8a4c1ee1 Line up visible lines and include gaps if necessary 2021-07-07 22:01:19 +07:00
Wilfred Hughes 5463c120f4 Better punctuation parsing for JS and OCaml
Closes #7
2021-07-07 19:53:45 +07:00
Wilfred Hughes ccaca6f6a6 Rust: Consider , as separate punctuation
Closes #8
2021-07-07 19:51:49 +07:00
Wilfred Hughes e6df1dfaa2 Rust parser: try to distinguish characters from lifetimes 2021-07-07 19:50:18 +07:00
Wilfred Hughes be94cd97ee Handle . and ? as Rust punctuation
Fixes #6
2021-07-06 22:59:19 +07:00
Wilfred Hughes 99f357f780 Make function public and prefer references to hashmap of matched lines 2021-07-05 23:08:14 +07:00
Wilfred Hughes 45efe5245a Remove completed todo 2021-07-05 22:43:14 +07:00
Wilfred Hughes 09a5b6e147 Add a util for aligning lines between sides 2021-07-05 22:36:57 +07:00
Wilfred Hughes 8a5e20166c Add a util for finding matching lines from paired Syntax values 2021-07-05 21:41:47 +07:00
Wilfred Hughes 959c65ff75 Split out a helper function for rendering a single LineGroup 2021-07-05 15:17:28 +07:00
Wilfred Hughes eb75952b94 Simplify pattern match for edge costs 2021-07-05 15:08:24 +07:00
Wilfred Hughes 3dde18e66f Ignore data from perf when profiling 2021-07-05 13:17:05 +07:00
Wilfred Hughes 638cf1245a Add JSON to sample files 2021-07-05 13:13:47 +07:00
Wilfred Hughes 593ac16de4 Adding TODO for memory usage 2021-07-05 00:49:42 +07:00
Wilfred Hughes 21b2932dd7 Don't track 'same line' on edges
This needs to be on vertices.
2021-07-04 22:42:54 +07:00