difftastic/sample_files
Wilfred Hughes 40d3ccd06c Fix confusion between byte length and codepoint length in styling
We should split lines based on their codepoint length, so all our
lengths are on codepoint boundaries. We can then safely index by byte position.

All the positions are measured in bytes, not code points. Tweak
function names to make this explicit.

Fixes #149
2022-03-15 09:50:13 +07:00
..
dir_after Document diffing directories 2022-01-22 18:58:04 +07:00
dir_before Document diffing directories 2022-01-22 18:58:04 +07:00
bad_combine_after.rs Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
bad_combine_before.rs Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
change_outer_after.el Keep exploring the graph even when we find matched delimiters 2022-03-13 15:41:54 +07:00
change_outer_before.el Keep exploring the graph even when we find matched delimiters 2022-03-13 15:41:54 +07:00
clojure_after.clj Fix syntax error in clojure example program 2022-03-05 16:31:47 +07:00
clojure_before.clj Add sample clojure files 2022-02-02 23:07:11 +07:00
comments_after.rs Add example of a single line changing in a block comment 2021-11-02 23:23:37 +07:00
comments_before.rs Add example of a single line changing in a block comment 2021-11-02 23:23:37 +07:00
compare.expected Fix confusion between byte length and codepoint length in styling 2022-03-15 09:50:13 +07:00
compare_all.sh Simplify usage of regression test suite 2022-02-24 20:35:36 +07:00
context_after.rs Always display all lines in a hunk 2022-03-15 00:11:30 +07:00
context_before.rs Always display all lines in a hunk 2022-03-15 00:11:30 +07:00
contiguous_after.js Add a sample file exercising contiguous item logic 2021-07-31 10:50:02 +07:00
contiguous_before.js Add a sample file exercising contiguous item logic 2021-07-31 10:50:02 +07:00
css_after.css Treat float values as atoms in CSS 2021-12-04 18:34:24 +07:00
css_before.css Treat float values as atoms in CSS 2021-12-04 18:34:24 +07:00
elisp_after.el Lisp sample files 2019-11-18 11:51:45 +07:00
elisp_before.el Lisp sample files 2019-11-18 11:51:45 +07:00
elisp_contiguous_after.el Add another contiguous atoms test file 2022-01-15 18:52:03 +07:00
elisp_contiguous_before.el Add another contiguous atoms test file 2022-01-15 18:52:03 +07:00
hack_after.php Add basic syntax highlighting for Hack 2022-02-02 23:39:00 +07:00
hack_before.php Add basic syntax highlighting for Hack 2022-02-02 23:39:00 +07:00
haskell_after.hs Add a Haskell sample file 2021-11-14 13:18:58 +07:00
haskell_before.hs Add a Haskell sample file 2021-11-14 13:18:58 +07:00
helpful-unit-test-after.el Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
helpful-unit-test-before.el Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
helpful_after.el Add another elisp sample file 2021-07-27 23:48:58 +07:00
helpful_before.el Add another elisp sample file 2021-07-27 23:48:58 +07:00
if_after.py Simplify Python example file 2021-08-30 21:20:17 +07:00
if_before.py Simplify Python example file 2021-08-30 21:20:17 +07:00
java_after.java Rename Java sample file for consistency 2021-11-14 13:34:46 +07:00
java_before.java Rename Java sample file for consistency 2021-11-14 13:34:46 +07:00
javascript_after.js Making the JS sample file more interesting 2019-11-18 17:59:04 +07:00
javascript_before.js Making the JS sample file more interesting 2019-11-18 17:59:04 +07:00
javascript_simple_after.js Rename JS sample file 2022-02-13 17:18:39 +07:00
javascript_simple_before.js Rename JS sample file 2022-02-13 17:18:39 +07:00
json_after.json Rename JSON files to match sample file naming convention 2021-10-23 16:24:54 +07:00
json_before.json Rename JSON files to match sample file naming convention 2021-10-23 16:24:54 +07:00
jsx_after.jsx Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
jsx_before.jsx Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
load_after.js Add a JS test file showing a larger change 2021-07-27 23:48:03 +07:00
load_before.js Add a JS test file showing a larger change 2021-07-27 23:48:03 +07:00
modules_after.ml Add sample file showing slow perf large adjacent lists 2022-03-12 11:28:28 +07:00
modules_before.ml Add sample file showing slow perf large adjacent lists 2022-03-12 11:28:28 +07:00
multibyte_after.py Fix confusion between byte length and codepoint length in styling 2022-03-15 09:50:13 +07:00
multibyte_before.py Fix confusion between byte length and codepoint length in styling 2022-03-15 09:50:13 +07:00
nest_after.rs Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
nest_before.rs Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
nesting_after.el Use depth difference as a heuristic when comparing equal nodes 2022-03-08 09:44:55 +07:00
nesting_before.el Use depth difference as a heuristic when comparing equal nodes 2022-03-08 09:44:55 +07:00
ocaml_after.ml Treat attribute IDs in OCaml as atoms 2022-01-27 20:25:17 +07:00
ocaml_before.ml Treat attribute IDs in OCaml as atoms 2022-01-27 20:25:17 +07:00
ruby_after.rb Configure atoms for Ruby 2021-11-20 14:46:12 +07:00
ruby_before.rb Add basic Ruby support 2021-11-20 01:08:33 +07:00
scala_after.scala Test comment highlighting in Scala 2022-02-02 23:07:25 +07:00
scala_before.scala Test comment highlighting in Scala 2022-02-02 23:07:25 +07:00
simple_after.js Ensure we always include the first and last hunk line 2022-01-22 18:46:55 +07:00
simple_after.txt Ensure we always include the first and last hunk line 2022-01-22 18:46:55 +07:00
simple_before.js Ensure we always include the first and last hunk line 2022-01-22 18:46:55 +07:00
simple_before.txt Ensure we always include the first and last hunk line 2022-01-22 18:46:55 +07:00
slider_after.rs Add files from #134 to sample file collection 2022-02-12 11:10:23 +07:00
slider_before.rs Add files from #134 to sample file collection 2022-02-12 11:10:23 +07:00
slow_after.rs Add benchmark file (takes 3-4 seconds today) 2021-09-12 21:01:54 +07:00
slow_before.rs Add benchmark file (takes 3-4 seconds today) 2021-09-12 21:01:54 +07:00
small_after.js Add a small JS sample file 2019-11-18 17:47:59 +07:00
small_before.js Add a small JS sample file 2019-11-18 17:47:59 +07:00
syntax_error_after.js Ensure sample file is a syntax error for tree-sitter 2021-12-04 18:03:06 +07:00
syntax_error_before.js Ensure sample file is a syntax error for tree-sitter 2021-12-04 18:03:06 +07:00
text_after.txt Expand text sample file 2022-01-02 19:18:19 +07:00
text_before.txt Expand text sample file 2022-01-02 19:18:19 +07:00
typing_after.ml Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00
typing_before.ml Make sample files naming consistent so they're all used in regression test 2022-02-13 17:21:20 +07:00