From 66fb84277b82822b0985a7e4d3e17a61d216d895 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Sat, 23 May 2026 09:55:53 +0000 Subject: [PATCH] Update package --- CHANGELOG.md | 8 +++++++- composer.json | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5818b4f..5df86c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +* Fix greedy `condition_pattern` that produced broken PHP when an `%if`, `%unless`, `%isset`, `%loop`, `%while`, or `%for` directive sat on a single line with a `{{ }}` echo in its body (the head would extend past the real `)` and swallow the echo's closing paren). Replaced `(.*)` with a recursive balanced-paren matcher in `Compiler::$condition_pattern`. + ## 3.1.5 - 2025-12-21 ### What's Changed @@ -21,7 +27,7 @@ Change the core language - We use now the % symbol to identify tintin directives - Add the new directive like `%import` or `%macro` -## [Unreleased] +## Pre-3.0.0 notes - Change the template lexique from # to % - Remove the default configuration diff --git a/composer.json b/composer.json index 35a64f0..3dc78ce 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,10 @@ "spatie/phpunit-snapshot-assertions": "^4.2" }, "extra": { + "branch-alias": { + "dev-3.x": "3.x-dev", + "dev-3.x-update-changelog": "3.x-dev" + }, "laravel": { "providers": [ "Tintin\\Laravel\\TintinServiceProvider"