Wilfred Hughes
298a23ea5e
Fix permissions on version placeholder script
2022-09-23 23:11:36 +07:00
Wilfred Hughes
78dabcabce
Remove unused manual configuration item
...
This 'multlingual' option isn't mentioned in the mdbook docs as far as
I can see.
2022-09-23 23:08:54 +07:00
Wilfred Hughes
b1fcd79da5
Configure translated manual deploy
2022-09-23 23:05:34 +07:00
Wilfred Hughes
4fa09c4cdf
Merge pull request #370 from Yeegsing/translation
...
manual's translation of zh-CN version
2022-09-23 22:55:43 +07:00
Wilfred Hughes
ee688b43f2
--list-languages should respect --color
...
Fixes #387
2022-09-21 21:49:24 +07:00
Wilfred Hughes
c602503dec
Treat . as punctuation
...
Closes #388
2022-09-21 21:39:07 +07:00
Wilfred Hughes
af73c27cd2
Prefer Option for converting tree-sitter nodes to difftastic nodes
2022-09-20 09:12:34 +07:00
Wilfred Hughes
c67a3d339a
Remove debugging code
2022-09-20 09:08:00 +07:00
Wilfred Hughes
cc5580e930
cargo fmt
2022-09-20 09:07:20 +07:00
Wilfred Hughes
662b837ae3
Introduce a TreeSitterError atom kind
...
Starting work on #267
2022-09-19 09:47:55 +07:00
Wilfred Hughes
f71ce08407
Don't assume that Windows is building on MSVC
...
The flag /utf-8 is supported by cl.exe, but gcc.exe interprets it as a
non-existent linker script.
2022-09-18 15:08:53 +07:00
Wilfred Hughes
17ec5de754
Next release should be 0.37
2022-09-18 15:07:31 +07:00
Wilfred Hughes
88222e83c4
Prepare for patch release with fixed Windows build
2022-09-17 23:55:00 +07:00
Wilfred Hughes
d5ae17d3d5
Roll version following release
2022-09-17 20:18:59 +07:00
Wilfred Hughes
5d75d81b1e
cargo fmt
2022-09-17 20:17:40 +07:00
Wilfred Hughes
ba6d73bcf4
Document Hare in manual and changelog
2022-09-15 09:39:41 +07:00
Wilfred Hughes
39bd04002c
Merge pull request #369 from esawady/hare
...
Add Hare support
2022-09-15 09:33:07 +07:00
Wilfred Hughes
cafd672cc8
Don't underline all changes in plaintext files
...
Fixes #371
2022-09-15 09:30:16 +07:00
Wilfred Hughes
7d849582ce
Pass the detected language to the styling logic
2022-09-15 09:27:34 +07:00
Ember Sawady
7ed685ae52
Add support for Hare
2022-09-13 23:34:16 +07:00
Ember Sawady
6015c77a99
Add 'vendor/tree-sitter-hare/' from commit 'bc26a6a949f2e0d98b7bfc437d459b250900a165'
...
git-subtree-dir: vendor/tree-sitter-hare
git-subtree-mainline: 3c51f58d8e
git-subtree-split: bc26a6a949
2022-09-13 22:13:13 +07:00
Wilfred Hughes
3c51f58d8e
Add Pascal support
...
Fixes #365
2022-09-13 00:05:23 +07:00
Wilfred Hughes
4c29035138
Add 'vendor/tree-sitter-pascal/' from commit '2fd40f477d3e2794af152618ccfac8d92eb72a66'
...
git-subtree-dir: vendor/tree-sitter-pascal
git-subtree-mainline: 4319a9db04
git-subtree-split: 2fd40f477d
2022-09-12 23:16:57 +07:00
Wilfred Hughes
4319a9db04
Almost 40 languages now!
2022-09-12 23:14:39 +07:00
Wilfred Hughes
23f6a15838
Update changelog for 888894d0f
2022-09-12 23:03:54 +07:00
Wilfred Hughes
aff584af46
Don't crash when the line split boundary is on a combining character
...
Fixes #358
2022-09-12 23:02:20 +07:00
eric.tao
e22ff2a84d
zh-cn
2022-09-12 17:20:13 +07:00
Wilfred Hughes
c03808537a
Be defensive against extremely narrow (<10) terminal widths
...
Previously this would overflow.
2022-09-11 17:37:42 +07:00
Wilfred Hughes
35878fcc2b
max_len should always be non-zero
2022-09-11 17:26:55 +07:00
Yeegsing
4bd6bd4638
Merge branch 'translation' of https://github.com/Yeegsing/difftastic into translation
2022-09-12 08:09:18 +07:00
Yeegsing
c380ecff48
update the rest of the translation
2022-09-12 08:04:36 +07:00
Wilfred Hughes
2e22d19600
Improve variable name
2022-09-11 16:15:48 +07:00
Wilfred Hughes
f155a27522
Underline changed words in comments
...
This makes them easier to spot in larger changes.
Fixes #328
2022-09-10 15:54:04 +07:00
Wilfred Hughes
888894d0f0
Be stricter about text encoding validity
...
20 was too much for .zip files, where we were only seeing 21 invalid
characters in UTF-8 and 6 in UTF-16.
Improves #358 further
2022-09-10 15:43:11 +07:00
Wilfred Hughes
fe30b7d86b
Treat .zip files as binary unconditionally
...
Improves #358
2022-09-10 12:22:58 +07:00
Wilfred Hughes
3a8b0ebaf8
Merge pull request #361 from yuja/add-qml
...
Add support for QML
2022-09-10 12:07:58 +07:00
Wilfred Hughes
98e42b4362
Add a workaround for parsers leaving trailing \r in comments
...
Fixes #364
2022-09-10 12:02:22 +07:00
Wilfred Hughes
19ad2fdb61
Improve comment wording
2022-09-10 11:22:15 +07:00
Eric Tao
5b57b2d279
Merge branch 'Wilfred:master' into translation
2022-09-10 18:05:15 +07:00
Yeegsing
013a4ecdb7
translate part of the manual into chinese
2022-09-10 17:55:41 +07:00
Yeegsing
44712123d3
create the manual-zh-CN folder, and organize the translation file structure
2022-09-10 15:08:50 +07:00
Wilfred Hughes
cd6b33ee28
Run the same tab replacement for --dump-ts and --dump-syntax
...
This is important for getting parse trees consistent with normal
diffing behaviour.
2022-09-09 22:43:13 +07:00
Yuya Nishihara
84f0b25fb6
Add support for QML
...
QML is a UI language, and its syntax is basically JSON-like structure
+ JavaScript. The tree-sitter parser is named after the upstream grammar
file qmljs.g, but the canonical language name is QML. So I choose Qml as
the Language enum.
https://doc.qt.io/qt-6/qmlapplications.html
2022-09-10 11:38:35 +07:00
Yuya Nishihara
79d594fc56
Add 'vendor/tree-sitter-qmljs/' from commit '3bcf9c4d0911e74307c6d704c1ea242a1e4a2f94'
...
git-subtree-dir: vendor/tree-sitter-qmljs
git-subtree-mainline: fe5ef8757d
git-subtree-split: 3bcf9c4d09
2022-09-10 11:36:22 +07:00
Wilfred Hughes
fe5ef8757d
Give novel punctuation a lower edge cost
...
We'd rather see an unchanged variable name than an unchanged comma.
Fixes #366
2022-09-09 09:47:53 +07:00
Wilfred Hughes
ed1e1d870e
Disable arm64 build and release
...
Builds are currently failing, so the release would fail too.
It looks like a compilation issue with tree-sitter-yaml:
The following warnings were emitted during compilation:
warning: vendor/tree-sitter-yaml-src/scanner.cc: In member function ‘bool {anonymous}::Scanner::scn_dir_tag_pfx(TSLexer*, TSSymbol)’:
warning: vendor/tree-sitter-yaml-src/scanner.cc:430:9: warning: case label value is less than minimum value for type
warning: 430 | case SCN_FAIL:
warning: | ^~~~
This reverts #353 , but I've opened #368 .
2022-09-09 09:09:50 +07:00
Wilfred Hughes
28c5461a2f
Merge pull request #359 from ingefredriksen/patch-1
...
Fix help-value for "--syntax-highlight" argument.
2022-09-09 09:09:00 +07:00
Wilfred Hughes
b975a0ee9b
Merge pull request #360 from yuja/unset-locale
...
Unset LC_ALL and LC_COLLATE to stabilize regression test output
2022-09-09 09:08:47 +07:00
Wilfred Hughes
53d44175cc
Install g++ for arm64 too
2022-09-08 22:57:21 +07:00
Wilfred Hughes
9663111eeb
Install gcc for arm64 for arm64 CI
2022-09-08 19:02:51 +07:00