]> Devi Nivas Git - chevron.git/commit
Fix #48
authorDaniel Morrison <dan@morrison.ph>
Sun, 7 Apr 2019 14:55:57 +0000 (10:55 -0400)
committerDaniel Morrison <dan@morrison.ph>
Sun, 7 Apr 2019 14:55:57 +0000 (10:55 -0400)
commit7406c16e43d1112a3691299ff0913a676c3b9fd2
tree4168947dcab6c919ffa7ec65ae6c36d1333d447b
parent97d4f14e10fecde3a9df8340082d12146a3e721f
Fix #48

Turns out some weird scoping things were happening.

The `scopes` variable is being passed throughout by reference.

Which is great (yay speed improvements). In theory. Except...

All operations must therefore operate on scopes by reference.

`scopes = scopes[1:]` used to end a scope updates the reference.
This means the parent call to renderer doesn't leave the scope.
chevron/renderer.py