v0.89.0

Textualize/textualv0.89.0Dec 5, 2024by willmcgugan

AI Summary

This release marks a significant update to syntax highlighting capabilities, including support for Python 3.13 and XML, though it introduces several breaking changes to the underlying API.

Key Highlights

  • Added support for Python 3.13 syntax highlighting
  • Added XML syntax highlighting
  • Added 'tab' border style
  • Updated tree-sitter dependency

Breaking Changes

  • Document.query_syntax_tree signature changed
  • TextArea.register_language signature changed
  • SyntaxAwareDocument.language_name property removed
  • Kotlin syntax highlighting removed from TextArea

New Features

  • Tab border style
  • XML syntax highlighting
  • TextArea.update_highlight_query

Full Release Notes

This release updates the tree-sitter dependency to add support for syntax highlighting in Python 3.13

See below for the full update

> [!NOTE]  
> This release will probably be the last before 1.0! Consider it a Release Candidate.


## [0.89.0] - 2024-11-05

## Added

- Added "tab" border style https://github.com/Textualize/textual/pull/5335
- Added support for XML syntax highlighting https://github.com/Textualize/textual/pull/5320
- Added `TextArea.update_highlight_query` https://github.com/Textualize/textual/pull/5320

## Fixed

- Fixed Select not scrolling highlight in to view when clicked https://github.com/Textualize/textual/issues/5255
- Upgraded tree-sitter to 0.23+ (`syntax` extras) https://github.com/Textualize/textual/pull/5320
- Some syntax highlighting changes due to tree-sitter updates https://github.com/Textualize/textual/pull/5320
- Breaking change: `Document.query_syntax_tree` signature changed https://github.com/Textualize/textual/pull/5320
- Breaking change: `TextArea.register_language` signature changed https://github.com/Textualize/textual/pull/5320
- Breaking change: `SyntaxAwareDocument.language_name` property removed https://github.com/Textualize/textual/pull/5320
- Breaking change: Kotlin syntax highlighting removed from `TextArea` https://github.com/Textualize/textual/pull/5320
- Fixed selection list wrapping https://github.com/Textualize/textual/pull/5331
- Fixed CSS encoding issue on Windows https://github.com/Textualize/textual/pull/5324