Changes

no edit summary
Line 317: Line 317:  
end
 
end
   −
function interpret_arg(arg)
+
function interpret_arg(arg, args)
 
     local prefix = string.sub(arg, 1, 1)
 
     local prefix = string.sub(arg, 1, 1)
 
     local prefix2 = string.sub(arg, 1, 2)
 
     local prefix2 = string.sub(arg, 1, 2)
Line 327: Line 327:  
         local enumerator = string.sub(arg, 2)
 
         local enumerator = string.sub(arg, 2)
 
         local enumerating_function = enumerating_functions[enumerator]
 
         local enumerating_function = enumerating_functions[enumerator]
         if enumerating_function and not sequence then
+
         if enumerator == 'range' then
 +
            sequence = {}
 +
            for i = tonumber(args.from), tonumber(args.to) do
 +
                table.insert(sequence, i)
 +
            end
 +
            sequence_position = 1
 +
        elseif enumerating_function and not sequence then
 
             sequence = enumerating_function()
 
             sequence = enumerating_function()
 
             sequence_position = 1
 
             sequence_position = 1
Line 391: Line 397:  
             debugLog("i", i)
 
             debugLog("i", i)
 
             debugLog("arg", arg)
 
             debugLog("arg", arg)
             local value = interpret_arg(arg)
+
             local value = interpret_arg(arg, args)
 
             debugLog("value", value)
 
             debugLog("value", value)
 
             if value then
 
             if value then
cssedit, gkautomate
6,940

edits