Closed MarcUpsher closed 5 years ago
I'm getting this same error. Would appreciate if anyone has figured out an answer?
Okay, so... this is the change that "broke" this behaviour.
Options are either:
Add a few more hardcoded keywords that you can add an underscore postfix that is stripped. e.g. import_
here like class_
.
Better parsing.
I implemented the better parsing. Tests pass. Considering implementing option 1 as well...
I'm going to leave it there. v1.2.1 is on PyPI.
Hi
I'm upgrading from ver 1.0.1 to 1.1.0, and a file that previously parsed is now throwing up errors. The line in question is:
%%namespace(file="file.haml", *{'import': ''})
From reading the Mako docs, it appears that line should compile into the following:
<%namespace file="/file.haml" import="*"/>
Instead, I'm getting the following error:
SyntaxException: (SyntaxError) invalid syntax (, line 1) (u"namespace<% M_writer(__HAML.attribute_str({'ad") in file xxx
I'm not sure if this is an error in my code, or something the parser cannot deal with. Any assistance would be greatly appreciated!