chore(deps): bump github.com/mna/pigeon from 1.2.1 to 1.3.0

Bumps [github.com/mna/pigeon](https://github.com/mna/pigeon) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/mna/pigeon/releases)
- [Changelog](https://github.com/mna/pigeon/blob/master/.goreleaser.yml)
- [Commits](https://github.com/mna/pigeon/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/mna/pigeon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2024-09-25 10:45:29 +02:00
committed by Ralf Haferkamp
parent 5f3cd4e887
commit d836423a0b
28 changed files with 487 additions and 152 deletions
+4 -4
View File
@@ -17,7 +17,7 @@ var (
// errMaxExprCnt is used to signal that the maximum number of
// expressions have been parsed.
errMaxExprCnt = errors.New("max number of expresssions parsed")
errMaxExprCnt = errors.New("max number of expressions parsed")
)
// Option is a function that can set an option on the parser. It returns
@@ -1035,8 +1035,8 @@ func (p *parser) parseExprWrap(expr any) (any, bool) {
var pt savepoint
// ==template== {{ if .LeftRecursion }}
isLeftRecusion := p.rstack[len(p.rstack)-1].leftRecursive
if p.memoize && !isLeftRecusion {
isLeftRecursion := p.rstack[len(p.rstack)-1].leftRecursive
if p.memoize && !isLeftRecursion {
// {{ else }}
if p.memoize {
// {{ end }} ==template==
@@ -1053,7 +1053,7 @@ func (p *parser) parseExprWrap(expr any) (any, bool) {
// ==template== {{ if not .Optimize }}
// ==template== {{ if .LeftRecursion }}
if p.memoize && !isLeftRecusion {
if p.memoize && !isLeftRecursion {
// {{ else }}
if p.memoize {
// {{ end }} ==template==