Wilfred Hughes
65472ed62c
Add another contiguous atoms test file
2022-01-15 18:52:03 +07:00
Wilfred Hughes
2d4ab5e494
Treat ocaml tags as atoms too
2022-01-15 11:00:41 +07:00
Wilfred Hughes
c7b12d202f
Treat ocaml type variables as an atom
...
The `'` in `'foo` gets a separate tree-sitter AST node, but the `foo`
does not. Treat the whole thing as an atom to avoid missing
highlighting on the `foo` part.
Fixes #89
2022-01-14 23:35:19 +07:00
Wilfred Hughes
4ac1fb1818
Expand text sample file
2022-01-02 19:18:19 +07:00
Wilfred Hughes
dd2a6639a2
Add sample file for text
2022-01-01 19:56:58 +07:00
Wilfred Hughes
2bdd876d40
Expand example in JSX samples to test #72
2021-12-07 23:09:07 +07:00
Wilfred Hughes
e00f94fed8
Treat float values as atoms in CSS
...
Otherwise we treat `0.5em` as two atoms, unlike `1em` which was
already a single atom.
2021-12-04 18:34:24 +07:00
Wilfred Hughes
29fa6f1102
Ensure sample file is a syntax error for tree-sitter
...
Turns out that missing closing parens doesn't lead to ERROR nodes.
2021-12-04 18:03:06 +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
67bea22434
Rename Java sample file for consistency
2021-11-14 13:34:46 +07:00
Wilfred Hughes
1ad04f10bb
Add a Haskell sample file
2021-11-14 13:18:58 +07:00
Wilfred Hughes
23b9092bd6
Add sample file pair that has shown a ton of hunk merging bugs
2021-11-14 11:49:37 +07:00
Wilfred Hughes
3efa77c43e
Add example of a single line changing in a block comment
2021-11-02 23:23:37 +07:00
Wilfred Hughes
5e9a0eec5d
Rename JSON files to match sample file naming convention
2021-10-23 16:24:54 +07:00
Wilfred Hughes
4ba8508581
Add sample files showing a syntax error
2021-09-20 00:25:59 +07:00
Wilfred Hughes
04d3e916ba
Add benchmark file (takes 3-4 seconds today)
2021-09-12 21:01:54 +07:00
Wilfred Hughes
b6b0f8057b
Treat integer values as atoms in CSS
2021-09-05 11:39:49 +07:00
Wilfred Hughes
ceb42a6ad2
Add Java test file
2021-09-04 19:04:21 +07:00
Wilfred Hughes
28d7b85e6b
Simplify Python example file
2021-08-30 21:20:17 +07:00
Wilfred Hughes
974655aea8
Add a test file that shows how Python diffing is currently broken
2021-08-29 23:59:24 +07:00
Wilfred Hughes
1dfedc6534
Ensure we use codepoints when slicing strings to avoid crashes
...
Rust will panic if we try to slice on a boundary that isn't a char
boundary. Count unicode codepoints and slice to the relevant byte.
Added a test file that was crashing before due to the use of curly
quotes.
2021-08-29 15:10:01 +07:00
Wilfred Hughes
a2de2eb241
Add a string literal to CSS sample files
2021-08-26 23:21:35 +07:00
Wilfred Hughes
47d888c140
Add a JSX test file
2021-08-16 22:17:32 +07:00
Wilfred Hughes
1553533559
Add a sample file exercising contiguous item logic
2021-07-31 10:50:02 +07:00
Wilfred Hughes
ad585be0fc
Add another elisp sample file
2021-07-27 23:48:58 +07:00
Wilfred Hughes
2aae6b6e77
Add a JS test file showing a larger change
2021-07-27 23:48:03 +07:00
Wilfred Hughes
78d0a354db
Add sample file for changing nesting levels of variables
...
The last expression `res` in `fn parse_lines` was previously handled
badly, choosing an inner `res` occurrence.
2021-07-27 23:46:11 +07:00
Wilfred Hughes
04214ef1ef
Ignore indentation changes on multiline comments
2021-07-25 12:27:24 +07:00
Wilfred Hughes
928584676a
Only highlight individual comment words for comments that are similar
2021-07-24 17:01:30 +07:00
Wilfred Hughes
638cf1245a
Add JSON to sample files
2021-07-05 13:13:47 +07:00
Wilfred Hughes
147ab76414
Keep all sample files in sample_files/
2021-07-04 11:10:16 +07:00
Wilfred Hughes
44ae3a980f
Making the JS sample file more interesting
...
Use a file pair that have both additions and removals
2019-11-18 17:59:04 +07:00
Wilfred Hughes
285f138d39
Add a small JS sample file
2019-11-18 17:47:59 +07:00
Wilfred Hughes
908ea25325
Add a sample javascript file
2019-11-18 12:03:45 +07:00
Wilfred Hughes
a70f0132f3
Lisp sample files
2019-11-18 11:51:45 +07:00
Wilfred Hughes
479d0d1671
Tweak colour to avoid confusion with the red shown during diffing
2018-12-31 11:25:15 +07:00
Wilfred Hughes
1e23284e42
Add some test files
2018-12-29 17:44:30 +07:00