Wilfred Hughes
fcf1b8349f
cargo fmt
2021-09-04 22:19:15 +07:00
Wilfred Hughes
90156a8d54
Updating test names to match current function name
2021-09-04 22:02:49 +07:00
Wilfred Hughes
ceb42a6ad2
Add Java test file
2021-09-04 19:04:21 +07:00
Wilfred Hughes
85f2376dbb
Add Java support
2021-09-04 18:59:16 +07:00
Wilfred Hughes
52f7d8be56
Add 'vendor/tree-sitter-java/' from commit '2efe37f92d2e6aeb25186e9da07455bb4a30163c'
...
git-subtree-dir: vendor/tree-sitter-java
git-subtree-mainline: e4b5bd4e19
git-subtree-split: 2efe37f92d
2021-09-04 18:31:31 +07:00
Wilfred Hughes
e4b5bd4e19
Remove Scheme support
...
There's no tree-sitter parser available sadly, and I eventually plan
to drop the regex parser.
2021-09-04 18:30:17 +07:00
Wilfred Hughes
be12924b24
Tweak wording
2021-09-04 18:28:12 +07:00
Wilfred Hughes
ae0ebbd3ca
Prefer jumping to the readme beginning over the top of the page
2021-09-04 17:17:05 +07:00
Wilfred Hughes
50868f09ec
Linking the logo isn't useful
2021-09-04 17:16:32 +07:00
Wilfred Hughes
809d6383ad
Document Python support
2021-09-04 17:05:11 +07:00
Wilfred Hughes
8d92590dad
Add link to crates.io too
2021-09-04 16:44:36 +07:00
Wilfred Hughes
87171399e6
Tweak alignment of badge
2021-09-04 16:39:40 +07:00
Wilfred Hughes
79a56954c3
Adding a logo
...
The font used is Fontdiner Swanky, under the Apache license and
available on Google fonts.
2021-09-04 16:39:08 +07:00
Wilfred Hughes
0141a348b6
Add codecov badge
2021-09-04 16:07:05 +07:00
Wilfred Hughes
a17542034d
Try llvm-cov for coverage
...
tarpaulin is missing coverage entirely in several files.
2021-09-04 16:00:22 +07:00
Wilfred Hughes
aee35f6921
Configure codecov to ignore rust in sample files or vendored code
2021-09-04 15:56:10 +07:00
Wilfred Hughes
768b93a501
Add action to compute test coverage
2021-09-04 15:49:20 +07:00
Wilfred Hughes
433b20ff8a
Ensure that LHS and RHS syntax nodes have different IDs
2021-09-04 11:04:30 +07:00
Wilfred Hughes
86a330c44e
Add debug logging and log stats on shortest path found
2021-09-04 10:46:51 +07:00
Wilfred Hughes
2cb1f02f62
Add todo for incorrect diffs when changing node depth
2021-08-30 21:20:24 +07:00
Wilfred Hughes
28d7b85e6b
Simplify Python example file
2021-08-30 21:20:17 +07:00
Wilfred Hughes
d00a20366f
Init info in AST when offering a debug view
2021-08-30 19:30:21 +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
d1354c7174
Use a single-column display when whole files are added or removed
2021-08-29 23:42:59 +07:00
Wilfred Hughes
d4121b6c0e
Clarify motivations in comment
2021-08-29 23:30:59 +07:00
Wilfred Hughes
6d270d8206
Add basic python parsing support
2021-08-29 22:33:30 +07:00
Wilfred Hughes
f2b6f32325
Add 'vendor/tree-sitter-python/' from commit 'd6210ceab11e8d812d4ab59c07c81458ec6e5184'
...
git-subtree-dir: vendor/tree-sitter-python
git-subtree-mainline: cc93976969
git-subtree-split: d6210ceab1
2021-08-29 22:22:12 +07:00
Wilfred Hughes
cc93976969
Handle SIGPIPE
...
Based on the sample code in
https://stackoverflow.com/a/65760807/509706
Closes #28
2021-08-29 16:50:05 +07:00
Wilfred Hughes
475eb804ab
Clariy known issues in README
2021-08-29 15:28:38 +07:00
Wilfred Hughes
c662181cd6
Make tree-sitter the default parser
2021-08-29 15:17:40 +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
209932bfa4
Document usage with debug builds
2021-08-29 11:31:09 +07:00
Wilfred Hughes
15706936af
Allow debug printing of Style
2021-08-29 11:25:38 +07:00
Wilfred Hughes
1326152232
Tweak function name
2021-08-28 13:11:34 +07:00
Wilfred Hughes
32c3e9d0ca
Fix another crash when removing a whole file in git
2021-08-28 12:53:55 +07:00
Wilfred Hughes
7f021e147d
Improve handling of delimiters in all supported tree-sitter languages
2021-08-28 12:00:06 +07:00
Wilfred Hughes
bdf61a47a6
Simplify debug output of Syntax unless DFT_VERBOSE is set
2021-08-28 11:56:33 +07:00
Wilfred Hughes
52f019c9ba
Write a printing tree walker for displaying tree-sitter results
2021-08-28 11:39:40 +07:00
Wilfred Hughes
2eb2f8b67d
Add a --dump-ts debug option
2021-08-28 11:24:29 +07:00
Wilfred Hughes
72640815b1
Use clap to extract package version from cargo
2021-08-27 22:34:51 +07:00
Wilfred Hughes
1d0b1ad6b6
Add --dump-syntax for debugging the syntax tree
2021-08-27 22:32:48 +07:00
Wilfred Hughes
33251f9e1a
Factor out a Mode struct
2021-08-27 22:21:24 +07:00
Wilfred Hughes
35779dde2e
Remove unused --lang argument
2021-08-27 22:11:30 +07:00
Wilfred Hughes
aff0131ecb
Define a separate files.rs for reading and content checking
2021-08-27 22:08:32 +07:00
Wilfred Hughes
ce2d6dee54
Factor out argument parsing from main function
2021-08-27 22:05:24 +07:00
Wilfred Hughes
594473ab2d
Prefer static strings where possible
2021-08-27 21:50:56 +07:00
Wilfred Hughes
81ffcecc49
Clarify comment
2021-08-27 21:49:16 +07:00
Wilfred Hughes
309e4bc02c
Match delimiter tokens based on their content
2021-08-26 23:51:06 +07:00
Wilfred Hughes
bda2ce7d11
Improve string literals in tree-sitter parsers
2021-08-26 23:35:19 +07:00
Wilfred Hughes
a2de2eb241
Add a string literal to CSS sample files
2021-08-26 23:21:35 +07:00