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/
|
||||
#
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue