Wilfred Hughes
426a95c552
Document C/C++ parser updates
2021-12-30 10:07:43 +07:00
Wilfred Hughes
6d6847247b
Merge commit 'e8dcc9d2b404c542fd236ea5f7208f90be8a6e89'
2021-12-30 10:06:32 +07:00
Wilfred Hughes
2325d0027e
Merge commit 'e348e8ec5efd3aac020020e4af53d2ff18f393a9'
2021-12-30 10:04:50 +07:00
Wilfred Hughes
3381a3dc60
Document bash parser update
2021-12-30 10:02:14 +07:00
Wilfred Hughes
a58e62876b
Merge commit '275effdfc0edce774acf7d481f9ea195c6c403cd'
2021-12-30 10:00:21 +07:00
Wilfred Hughes
6257bce826
Document the string literal problem
...
Closes #69
2021-12-30 09:58:56 +07:00
Wilfred Hughes
9a8441ecbf
Document blank line challenges
...
See #69
2021-12-30 09:47:44 +07:00
Wilfred Hughes
2d16d4aec4
Clarify comment prefix/suffix matching
2021-12-30 09:39:00 +07:00
Wilfred Hughes
24bbff1bbe
Improve headings
2021-12-30 09:37:16 +07:00
Wilfred Hughes
b5aaf1f2f2
Document punctuation from autoformatter challenge
...
See #69
2021-12-30 09:35:34 +07:00
Wilfred Hughes
177db1f652
Improve highlighting of blank lines in novel sections
...
If we're displaying a blank line and there's no opposite line, assume
it's novel and needs highlighting.
This is a best-effort heuristic, but it seems to work well.
2021-12-29 16:44:14 +07:00
Wilfred Hughes
9c2886cd4d
Factor out highlight position calculations
2021-12-29 16:25:42 +07:00
Wilfred Hughes
f78fdd3bc7
Add a very simplistic test for single column display
2021-12-29 16:08:23 +07:00
Wilfred Hughes
1469fe6385
Add a basic test for display width calculations
2021-12-29 16:05:46 +07:00
Wilfred Hughes
581d1696dd
Factor out a helper function for novel line highlighting
2021-12-29 16:04:36 +07:00
Wilfred Hughes
667a42d57b
Downgrade to tree-sitter 0.20.0
...
0.20.1 has a performance regression, which seems to particularly
affect Elixir parsing:
https://github.com/tree-sitter/tree-sitter/issues/1510
2021-12-29 14:59:12 +07:00
Wilfred Hughes
9d9f55a605
Document elixir parser changes
2021-12-29 10:45:44 +07:00
Wilfred Hughes
0227104ea8
We're now on elixir-lang's parser
2021-12-29 10:36:04 +07:00
Wilfred Hughes
99429ffe87
Add 'vendor/tree-sitter-elixir/' from commit '94d6471cc8cdfaf2808f6079036ded44a308db41'
...
git-subtree-dir: vendor/tree-sitter-elixir
git-subtree-mainline: 99c883c898
git-subtree-split: 94d6471cc8
2021-12-28 10:29:48 +07:00
Wilfred Hughes
99c883c898
Remove old elixir parser
2021-12-28 10:29:18 +07:00
Wilfred Hughes
a4888bc22a
Consistent alphabetical ordering
2021-12-28 10:26:24 +07:00
Wilfred Hughes
2dde483a16
Update which files need changing for a new parser
2021-12-28 10:24:38 +07:00
Wilfred Hughes
0cf68ef847
Roll version
2021-12-27 18:28:15 +07:00
Wilfred Hughes
7cc62a3835
Update Cargo.lock for latest dependencies
2021-12-27 18:02:26 +07:00
Wilfred Hughes
aec3a86a02
Use the longest file for language detection
2021-12-27 17:36:47 +07:00
Wilfred Hughes
9e3c6a7c9d
Use shebang (if present) to detect language type
2021-12-27 17:33:14 +07:00
Wilfred Hughes
012019a481
Document similarities to Linguist
2021-12-27 17:20:07 +07:00
Wilfred Hughes
640cf6723b
Add todo
2021-12-27 17:19:50 +07:00
Jonatan Kłosko
94d6471cc8
Fix multiline stab clause with trailing identifier ( #20 )
2021-12-27 22:56:00 +07:00
Wilfred Hughes
91db24fc9a
Add language detection based on whole file names
2021-12-27 12:38:22 +07:00
Wilfred Hughes
35c481289a
Add basic unit test for language detection by extension
2021-12-27 12:23:22 +07:00
Wilfred Hughes
f6f9f16e9f
Separate language detection from tree-sitter configuration
2021-12-27 12:18:46 +07:00
Wilfred Hughes
909656398e
Print to stderr when reporting errors, even with debugging flags
2021-12-27 12:06:43 +07:00
Wilfred Hughes
ca47e6592b
Fix typo
2021-12-27 12:05:58 +07:00
Wilfred Hughes
abb6bd9657
Fix needless borrows
2021-12-27 12:03:58 +07:00
Wilfred Hughes
9e3118f45d
Qualify tree-sitter imports
2021-12-27 11:58:44 +07:00
Wilfred Hughes
6f40d54e27
Use Path arguments when we're dealing with paths
2021-12-26 10:55:38 +07:00
Wilfred Hughes
4883edd90c
Factor out a DiffResult type
...
This separates diffing and printing better, and will make it easier to
provide a JSON output for #73 .
2021-12-21 23:44:55 +07:00
Wilfred Hughes
cb900c3463
Revert to term_size
...
Git invokes difftastic and then pipes stdout to less, but stderr still
goes to the terminal. term_size queries both stdout and stderr, so it
can still find the terminal width in this situation.
Previously, we'd always use a width of 80 when invoked by git.
terminal_size discussion:
https://github.com/eminence/terminal-size/issues/23
term_size does claim to support Windows, and #71 was not fixed by
changing libraries, so this seems reasonable.
2021-12-19 12:48:52 +07:00
Wilfred Hughes
382d498559
Fix crash when opposite side has unpaired lines
...
See #66
2021-12-18 23:30:16 +07:00
Wilfred Hughes
06ad384243
Document the best we can do for mercurial log viewing
...
Closes #61
2021-12-17 09:46:50 +07:00
Wilfred Hughes
efafd817ef
Reorder and polish contributing page
2021-12-17 09:39:13 +07:00
Wilfred Hughes
1fc9f3f07a
Give git and mercurial their own pages in the manual
2021-12-17 09:38:09 +07:00
Wilfred Hughes
2e61df4fac
Update to latest mdbook
2021-12-17 09:25:34 +07:00
Jonatan Kłosko
1b3ecf7765
Rename module highlight token ( #16 )
...
* Rename module highlight token
* Fix CRLF in scanner lookahead
2021-12-15 23:29:48 +07:00
Ryan Despain
275effdfc0
adding zsh expansion flagsSee https://zsh.sourceforge.io/Doc/Release/Expansion.html\#Parameter-Expansion-Flags ( #115 )
2021-12-15 08:53:04 +07:00
Wilfred Hughes
5c365c6212
cargo fmt
2021-12-11 16:02:42 +07:00
Wilfred Hughes
87a9182d3f
Clarify docstring wording
2021-12-11 16:02:18 +07:00
Wilfred Hughes
447ed2c14d
Fix crash on unicode characters on line boundaries
...
Fixes #74
2021-12-11 15:58:07 +07:00
Wilfred Hughes
740a82e6fc
Note robustness in known issues
...
There are several crashes in the current release.
2021-12-11 14:49:26 +07:00