Skip to content

Conversation

@guilhas07
Copy link
Contributor

@guilhas07 guilhas07 commented Feb 4, 2025

Problem:

range_action currently doesn't support statements like:

{{ range $value := $elements }}

expecting always a index variable, before the $value.

Solution:

Make the index optional.


Depends on #31

Problem: Rules like `variable_definition`, `assignment`, `range_action`,
`template_action`, `chained_pipeline`, `argument_list`
incorrectly allowed for variable definitions and assignments inside
them.
Solution: Remove rules `variable_definition` and `assignment` from
`pipeline`, using a new rule where both are supported.
Problem:
`range_action` currently doesn't support statements like:
{{ range $value := $elements }}
expecting always a `index` variable, before the `$value`.

Solution:
Make the index optional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant