util.termcolours: Rename loop variable [luacheck]
authorKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 14:03:16 +0000 (15:03 +0100)
committerKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 14:03:16 +0000 (15:03 +0100)
util/termcolours.lua

index dcdc994d0e98335f513de7b1abd8e22f003b95c0..53633b45b1b5744d5fbe94b1d47078e77b6da62b 100644 (file)
@@ -91,10 +91,10 @@ local csscolors = {
        aqua = "00ffff"; olive  = "808000"; black  = "000000"; navy = "000080";
        teal = "008080"; silver = "c0c0c0"; maroon = "800000"; gray = "808080";
 }
-for color, rgb in pairs(csscolors) do
-       stylemap[color] = stylemap[color] or stylemap[rgb];
-       color, rgb = color .. " background", rgb .. " background"
-       stylemap[color] = stylemap[color] or stylemap[rgb];
+for colorname, rgb in pairs(csscolors) do
+       stylemap[colorname] = stylemap[colorname] or stylemap[rgb];
+       colorname, rgb = colorname .. " background", rgb .. " background"
+       stylemap[colorname] = stylemap[colorname] or stylemap[rgb];
 end
 
 local function getstyle(...)