Syntax errors are now output with 3 lines.
If the extensions.conf file contains a line like:
You may see an error in /var/log/asterisk/messages like this:
The log line tells you that a syntax error was encountered. It now also tells you (in grand standard bison format) that it hit an "AND" (&) token unexpectedly, and that was hoping for for a MINUS , LP (left parenthesis), or a plain token (a string or number).
The next line shows the evaluated expression, and the line after that, the position of the parser in the expression when it became confused, marked with the "" character.