mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
Fixed sublime-completions doc building
This commit is contained in:
parent
1f23b86379
commit
15bb00780b
2 changed files with 2 additions and 4 deletions
|
|
@ -5,9 +5,9 @@
|
||||||
# -- Typical usage: ldoc . --template ./ --ext sublime-completions --dir ./sublimetext/
|
# -- Typical usage: ldoc . --template ./ --ext sublime-completions --dir ./sublimetext/
|
||||||
#
|
#
|
||||||
# local scope = "source.lua"
|
# local scope = "source.lua"
|
||||||
# local function e(str) return str:gsub("\"", "\\\"") end -- escape json string ("str")
|
# local function e(str) return (str or ""):gsub("\"", "\\\"") end -- escape json string ("str")
|
||||||
# local function indent(indentation, str) -- indent str (except first line) with indentation
|
# local function indent(indentation, str) -- indent str (except first line) with indentation
|
||||||
# return str:gsub("(.-)\n", indentation.."%1\n"):gsub("\n([^\n]*)$", "\n"..indentation.."%1"):gsub("^"..indentation, "")
|
# return (str or ""):gsub("(.-)\n", indentation.."%1\n"):gsub("\n([^\n]*)$", "\n"..indentation.."%1"):gsub("^"..indentation, "")
|
||||||
# end
|
# end
|
||||||
# local function displayName(item) return item.type == "function" and item.name..item.args or item.name end -- nice name
|
# local function displayName(item) return item.type == "function" and item.name..item.args or item.name end -- nice name
|
||||||
# local function autocompleteName(item) -- ST-autocomplete name
|
# local function autocompleteName(item) -- ST-autocomplete name
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
local ctr = require("ctr")
|
|
||||||
local hid = require("ctr.hid")
|
local hid = require("ctr.hid")
|
||||||
local gfx = require("ctr.gfx")
|
local gfx = require("ctr.gfx")
|
||||||
local hex = gfx.color.hex
|
local hex = gfx.color.hex
|
||||||
|
|
||||||
-- Options
|
-- Options
|
||||||
|
|
||||||
local config = {}
|
local config = {}
|
||||||
loadfile(ctr.root .. "config/keyboard.cfg", nil, config)()
|
loadfile(ctr.root .. "config/keyboard.cfg", nil, config)()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue