Commit Graph

189 Commits (0e4723cf0ebe513fc7ee83bdc77ee5cd0e66fd43)

Author SHA1 Message Date
Wilfred Hughes db86b28a28 Add support for Objective-C
Closes #600

Co-authored-by: Nick Moore <nick@pilotmoon.com>
2024-01-07 12:50:19 +07:00
Wilfred Hughes 89c7e6f471 Pass arguments to `git dlog` just like `git log` 2023-12-16 13:05:38 +07:00
Rodolphe Blancho e18b5d0712
Merge branch 'master' into feature/salesforce_apex_support 2023-12-05 12:31:59 +07:00
Wilfred Hughes b9a1302e54 Bump MSRV to 1.63
In the past I've been more cautious, but this is the version supported
by Debian Stable, and it's more than 12 months old.

A decent number of dependencies are only tested against newer rustc
versions (see e.g. the recent aho-coarasick pin due to no MSRV on that
library). I've filed bugs in some cases, but upgrading rustc versions
more aggressively should make this problem less common.
2023-11-26 01:24:29 +07:00
Wilfred Hughes 4284c3578a Increase MSRV to 1.60 2023-10-31 16:34:59 +07:00
Wilfred Hughes 69060fd617 Document SCSS support 2023-10-11 20:00:44 +07:00
Rodolphe Blancho 05d78ca741 add support for Salesforce Apex
Apex Language documentation:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dev_guide.htm

Uses https://github.com/aheber/tree-sitter-sfapex
2023-10-06 11:08:02 +07:00
Wilfred Hughes 6805939c66 Add missing paren in example 2023-09-28 01:05:58 +07:00
Wilfred Hughes 6c28bc9401 Expand parse error discussion 2023-09-27 15:45:46 +07:00
Wilfred Hughes c153090a65 Fix highlighting 2023-09-15 22:25:01 +07:00
Wilfred Hughes b5942abc66 Rewrite git instructions 2023-09-15 18:18:54 +07:00
Wilfred Hughes c627326e31 Add XML to the languages in the manual 2023-09-09 10:06:10 +07:00
Wilfred Hughes 4fd36915b0 Rust parser is no longer forked 2023-08-18 23:08:36 +07:00
Wilfred Hughes e0a1405453 Add the ability to parse conflict markers and diff the two files 2023-08-15 09:01:15 +07:00
Wilfred Hughes 4fdc8eebcd Increase MSRV to 1.59 2023-08-07 20:32:08 +07:00
Wilfred Hughes b3acf48128 Bump minimum required Rust version to 1.58
Difftastic is generally conservative about MSRV, and will only
increase the version when there is a compelling reason (e.g. major
performance improvement, important bug fix in a dependendency).

This version increase will enable us to upgrade crossterm to 0.26, which
has better detection of terminal width on Windows.

I've also clarified MSRV details for other dependencies that cannot
currently be upgraded.
2023-07-26 11:34:05 +07:00
Wilfred Hughes 5374dc4452 Clarify wording and difftastic's status in Tricky Cases 2023-07-24 08:46:20 +07:00
Wilfred Hughes 8da6efa262 Suggest --locked when people install with cargo 2023-07-24 08:25:01 +07:00
Wilfred Hughes 1b9844cd60 Add sliders to the glossary
Fixes #537
2023-07-21 08:39:53 +07:00
Wilfred Hughes 2d23eb549d Document the new LaTeX support 2023-07-20 23:05:18 +07:00
Wilfred Hughes d134bc8e9a Move profiling to a separate page in the manual 2023-05-21 23:37:15 +07:00
Wilfred Hughes b0a3a0ada9 Use DFT_LOG as the internal logging environment variable
Fixes #519
2023-05-21 23:33:34 +07:00
Cthulhux f0f4baedec
Document how to use difftastic with Fossil (#513)
* Add Fossil

* Create fossil.md
2023-05-10 10:33:41 +07:00
grunweg a053d34829
Tweak documentation for adding a parser (#510)
* fix/doc: change git subtree instructions to use https protocol

Typing the instructions as shown resulted in a git error: `Permission denied (publickey) fatal - Could not read from remote repository`. Switching to the https protocol as [suggested online](https://stackoverflow.com/a/33072867) worked.

* doc: complete instructions for language detection

If there are file extensions associated with my language, I want to add them as well!

* whoops, delete duplicate sentences

* doc: update section on configuring parsing.

- The highlighting definitions got moved to a subdirectory -> adjust the path.
- Mention the sub_languages field, which has also been added since the docs were last edited.

* Tweak description of language detection.
2023-05-05 15:26:16 +07:00
grunweg 98cc1b5745
doc: extend description of mercurial configuration (#507) 2023-04-30 09:18:37 +07:00
grunweg 79a91f0db2
doc: update mercurial configuration example
The `--missing-as-empty` option has been removed in version 0.46.
2023-04-28 16:05:17 +07:00
Wilfred Hughes efd57ddbae Update changelog and manual for Solidity support 2023-04-12 00:56:13 +07:00
Wilfred Hughes 43e561dc34 Link to the changelog in the installation instructions 2023-04-01 16:19:14 +07:00
Wilfred Hughes bc1b5b8217 We're now using the upstream clojure parser directly 2023-03-15 23:25:22 +07:00
Wilfred Hughes 312be7c65d Fix URL in manual 2023-03-15 15:59:39 +07:00
Karl Ding 5271f65f92 Add language support for Ada
Implement support in difftastic for the Ada programming language
using the treesitter grammar provided in 'briot/tree-sitter-ada'.

Language detection depends on the following suffixes:

    * adb
    * ads
    * ada

The presence of the alire TOML file (alire.toml) is also used as
a heuristic.
2023-03-14 21:46:40 +07:00
Wilfred Hughes c404917502 Update changelog and manual for Newick 2023-02-21 08:46:55 +07:00
Wilfred Hughes 9556cd978e Merge branch 'delehef/master' 2023-02-21 08:46:07 +07:00
Franklin Delehelle 21ded51e90 Add newick example files 2023-02-21 08:45:49 +07:00
Wilfred Hughes bdb314de45 Add Racket to the list of languages in the manual 2023-02-21 08:32:38 +07:00
Wilfred Hughes ad4c0d8b9c Fix folder name in manual 2023-01-26 08:50:13 +07:00
Wilfred Hughes 5ed4bac8a5 Add support for R
Fixes #470
2023-01-26 08:50:00 +07:00
Wilfred Hughes 5dfa4b64a9 Update new parser instructions 2023-01-26 08:16:06 +07:00
Wilfred Hughes 61a8d1a99f Fix mercurial example
Piping to less as shown just feeds control codes to less, which isn't
useful.

Closes #461
2023-01-13 08:33:55 +07:00
Wilfred Hughes 08b3ff138f Rename vendor/ directory
Closes #453
2023-01-10 08:35:01 +07:00
Wilfred Hughes c6d8dedc5d Fix duplicate word in manual 2023-01-08 21:33:55 +07:00
Wilfred Hughes a2f22cb17c Only set the exit code if --exit-code is set
This is important for usage with git log, which terminates on non-zero
exit codes.
2022-12-18 23:11:18 +07:00
Wilfred Hughes 6a46237bb0 Set the exit code when changes are found
Closes #285
2022-12-18 00:28:54 +07:00
Wilfred Hughes afc78e976d Document Erlang support and add test
Fixes #394
2022-12-15 23:30:45 +07:00
Wilfred Hughes c152c41691 Document punctuation atoms 2022-10-25 16:12:47 +07:00
Gurjeet Singh cbfc70c0b5 Remove TreeSitterConfig.name from documentation
TreeSitterConfig doesn't seem to have the `name` attribute, anymore.

I discovered this discrepancy while integrating Markdown language parser
in PR #380.
2022-10-24 23:06:20 +07:00
Wilfred Hughes a40d93e26c Show possible and desired results in tricky cases manual section 2022-10-09 23:48:21 +07:00
Wilfred Hughes 6630d5f480 Ensure highlighted text has contrast in all manual colour schemes
Fixes #374
2022-10-09 11:12:55 +07:00
Wilfred Hughes f8c2258024 Make manual translation more prominent 2022-09-28 23:21:11 +07:00
eric.tao 64fecb0ac1 add a link to change the language version 2022-09-25 15:14:45 +07:00