Skip to content

TemplateSyntaxError: expected token 'name', got ')' #100

Closed
@vpelletier

Description

I get this error when writign a macro with a trailing comma:

{% macro foo (
bar,
)%}
...
{% endmacro %}

Although it's not strictly required to make the macro work (I can just drop the trailing comma), it's quite convenient VCS-wise: if I add another parameter, I don't get a diff on the last existing parameter just because I need to add a comma.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions