From c4e0a95d4e71280746ac29276cd6398b17af9bf1 Mon Sep 17 00:00:00 2001 From: Fabien Fleutot Date: Thu, 27 Nov 2008 22:31:30 +0100 Subject: [PATCH] missing lineinfo for "for var in ... end" when there is exaclty one variable before "in" --- src/compiler/mlp_stat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/mlp_stat.lua b/src/compiler/mlp_stat.lua index d5fa0d7..bf19c6f 100644 --- a/src/compiler/mlp_stat.lua +++ b/src/compiler/mlp_stat.lua @@ -89,7 +89,7 @@ function for_header (lx) else -- Forin: there might be several vars local a = lx:is_keyword (lx:next(), ",", "in") - if a=="in" then var_list = { var } else + if a=="in" then var_list = { var, lineinfo = var.lineinfo } else -- several vars; first "," skipped, read other vars var_list = gg.list{ primary = id, separators = ",", terminators = "in" } (lx) -- 2.11.4.GIT