Skip to content

Version 2.0.0 (January 13, 2022)

Compare
Choose a tag to compare
@UltraInstinct05 UltraInstinct05 released this 13 Jan 05:52
· 94 commits to master since this release

This release is a major version bump for BetterTwig. There are a ton of improvements & fixes and one minor breaking change.

Breaking Change

The syntax name is changed from Twig.sublime-syntax to HTML (Twig).sublime-syntax. This is done to better reflect the fact that the Twig syntax now extends the HTML syntax to provide highlighting for both Twig & HTML specific code. If you are referring the syntax by its name for any purpose, then please change it to HTML (Twig).sublime-syntax. If you are also getting any error popups for existing open Twig files, then just close all of them & reopen again.

Improvements & Fixes

  • Syntax now uses inheritance to provide HTML highlighting. As an end user, there should be no difference at all, but using inheritance should significantly reduce syntax & regex cache size on disk, offering improved performance.
  • Better test coverage for indentation using indentation tests.
  • All of the completion files are now updated to use kind, annotation & details.
  • Added support for highlighting cache tags.
  • Added command palette entries for opening documentation and keybindings.
  • Added CI for running syntax tests via GitHub Actions.