aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-12 21:48:31 -0500
committerGitHub <noreply@github.com>2025-11-12 21:48:31 -0500
commit4dbe21aed8d350b51baa37ecb59e78e450e948da (patch)
tree04d54080f7ad8a2b8f22c5115fd022e909f08c01
parentf8a4f450e526382e8076102f6d65324cbfa5c207 (diff)
parentc555387d4a70a91d6e412fcdd9b7f07e68ebb08a (diff)
Merge pull request #1173 from FrancisTheCat/masterdev-2025-11
Fix loop variable for ranged for loops with `..=`
-rw-r--r--src/server/locals.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/locals.odin b/src/server/locals.odin
index a68c5b7..e1e5a5f 100644
--- a/src/server/locals.odin
+++ b/src/server/locals.odin
@@ -639,7 +639,7 @@ get_locals_for_range_stmt :: proc(
}
if binary, ok := stmt.expr.derived.(^ast.Binary_Expr); ok {
- if binary.op.kind == .Range_Half {
+ if binary.op.kind == .Range_Half || binary.op.kind == .Range_Full {
if len(stmt.vals) >= 1 {
if ident, ok := unwrap_ident(stmt.vals[0]); ok {
store_local(