Report columns in syntax errors

This commit is contained in:
Fabien Potencier
2026-06-05 20:20:32 +02:00
parent 4943bb405c
commit a82782ac30
13 changed files with 149 additions and 20 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$this->expectException(SyntaxError::class);
$this->expectExceptionMessage('An argument must be a name. Unexpected token "string" of value "a" ("name" expected) in "index" at line 1.');
$this->expectExceptionMessage('An argument must be a name. Unexpected token "string" of value "a" ("name" expected) in "index" at line 1 column 14.');
$parser->parse($env->tokenize(new Source('{% macro foo("a") %}{% endmacro %}', 'index')));
}