Unexpected token "operator" of value "and" ("end of statement block" expected)
Hello, I'm using twing as a Twig parser and faced an issue with version 6. Here's the simple code that triggers the issue: ```js const twigSource = ` {% if img.file is defined and img.file %} <li> Image </li> {% endif %}`; const env = createEnvironment(createArrayLoader([]), { parserOptions: { strict: false, }, strictVariables: false, }); const source = createSource('filename.twig', code); env.parse(env.tokenize(source)); ``` In my real code implementation, I'm parsing many Twig files and the error seems to be always triggered when `is defined` is used in conjunction with `and` operator. This does not happen in version 5. Any idea on how to fix this?
issue