aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gen_lua_c_api_tags.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-11 09:34:17 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-11 09:34:17 -0400
commitde3a745e1af2e441de868c2aa4849102d376acb5 (patch)
treec2d7767600dc519b2613ddecaf7e53fb5e8867a2 /scripts/gen_lua_c_api_tags.lua
parent03fab17277fee7387fd93a9c2774b1ebf3f80fe4 (diff)
Initial pass reformatting all code.
Use clang-format, LuaFormatter, and 100 character limit on lines.
Diffstat (limited to 'scripts/gen_lua_c_api_tags.lua')
-rwxr-xr-xscripts/gen_lua_c_api_tags.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/gen_lua_c_api_tags.lua b/scripts/gen_lua_c_api_tags.lua
index 1830652c..20c6dda3 100755
--- a/scripts/gen_lua_c_api_tags.lua
+++ b/scripts/gen_lua_c_api_tags.lua
@@ -4,10 +4,10 @@
local f = io.open('../modules/ansi_c/lua_tags', 'w')
-- Lua header files define API functions in a way ctags cannot detect.
-- For example: `LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);`.
--- The function name enclosed in parenthesis is causing the problem. A regex
--- must be used to capture those definitions.
-local p = io.popen('ctags -o - --regex-c++="/\\(([a-zA-Z_]+)\\) +\\(/\\1/f/" '..
- '../src/lua/src/lua.h ../src/lua/src/lauxlib.h')
+-- The function name enclosed in parenthesis is causing the problem. A regex must be used to
+-- capture those definitions.
+local p = io.popen('ctags -o - --regex-c++="/\\(([a-zA-Z_]+)\\) +\\(/\\1/f/" ' ..
+ '../src/lua/src/lua.h ../src/lua/src/lauxlib.h')
for line in p:read('*a'):gmatch('[^\n]+') do
-- Strip comment lines and replace file and ex_cmd fields with empty info.
if not line:find('^!') then