0.62.0

Wilfred/difftastic0.62.0Dec 21, 2024by github-actions[bot]

AI Summary

This release fixes a crash with multiline strings at file end (especially YAML), updates over 20 tree-sitter parsers, and improves syntax highlighting.

Key Highlights

  • Fixed crash with multiline strings at file end (especially YAML)
  • Updated 20+ tree-sitter parsers (Bash, C, C++, Go, Java, Python, etc.)
  • Improved syntax highlighting, particularly for keywords
  • Rust 1.74.1 now required to build
  • macOS x86-64 packages now built on macOS 13

New Features

  • Crash fix for multiline strings at end of file
  • Improved syntax highlighting for keywords
  • Better language detection with named pipes

Full Release Notes

Difftastic is a structural diff tool that understands syntax. See [the manual](https://difftastic.wilfred.me.uk/) to get started, and [the changelog](https://github.com/Wilfred/difftastic/blob/master/CHANGELOG.md) for historical changes.

### Diffing

Improved handling of multiline strings, which could cause a crash if they occurred at the end of the file. This was particularly noticeable with YAML.

### Parsing

Improved language detection when one argument is a named pipe.

Updated to the latest tree-sitter parser for Bash, C, C++, C#, CSS, Go, Haskell, HTML, Java, JavaScript, JSON, Julia, Lua, Objective-C, OCaml, PHP, Python, Ruby, Scala, TOML, TypeScript and XML.

### Syntax Highlighting

Improved syntax highlighting, particularly for keywords.

### Build

difftastic now requires Rust 1.74.1 to build.

Prebuilt packages for macOS on x86-64 are now built on macOS 13.