Skip to content

Commit

Permalink
LuaFAR: a fix in makefarkeys.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Sep 20, 2024
1 parent cbe2e78 commit 00d400c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 3, 0, 0, 848 },
Version = { 3, 0, 0, 849 },
MinFarVersion = { 3, 0, 0, 6327 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
4 changes: 4 additions & 0 deletions plugins/luamacro/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
shmuel 2024-09-21 01:58:53+03:00 - build 849

1. LuaFAR: a fix in makefarkeys.lua.

shmuel 2024-09-01 22:41:48+03:00 - build 848

1. Macrobrowser: refactoring.
Expand Down
11 changes: 4 additions & 7 deletions plugins/luamacro/luafar/makefarkeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ local function extract_enums (src)
local collector = {}
for enum in src:gmatch("%senum%s*[%w_]*%s*(%b{})") do
for line in enum:gmatch("[^\n]+") do
if line:match("^%s*#") then table.insert(collector, line)
else
local var = line:match("^%s*([%a_][%w_]*)")
if var then table.insert(collector, var) end
end
local var = line:match("^%s*([%a_][%w_]*)")
if var then table.insert(collector, var) end
end
end
return collector
end


local sOutFile = [[
// This is a generated file.
#include <lua.h>
Expand Down Expand Up @@ -66,7 +63,7 @@ local function makefarcolors (colors_file, guids_file, out_file)
assert(not errmsg, errmsg)
assert(#collect >= 83, "too few GUIDs collected")
local guids = table.concat(collect, ",")

fp = assert(io.open(out_file, "w"))
fp:write(sOutFile:format(colors, guids))
fp:close()
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 848
#define PLUGIN_BUILD 849

0 comments on commit 00d400c

Please sign in to comment.