Skip to content

Commit 73abde6

Browse files
committed
Rebuild instability
1 parent 97ae446 commit 73abde6

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

lua/conjure/client/guile/socket.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ local function parse_guile_result(s)
157157
if s:find("scheme@%([%w%-%s]+%) %[%d+%]>") then
158158
return {["done?"] = true, ["error?"] = true, result = nil}
159159
else
160-
return {result = s, ["error?"] = false, ["done?"] = false}
160+
return {result = s, ["done?"] = false, ["error?"] = false}
161161
end
162162
end
163163
end

lua/conjure/client/python/stdio.lua

+12-12
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _2amodule_2a["buf-suffix"] = buf_suffix
3939
local comment_prefix = "# "
4040
_2amodule_2a["comment-prefix"] = comment_prefix
4141
local function form_node_3f(node)
42-
return (("expression_statement" == node:type()) or ("function_definition" == node:type()) or ("for_statement" == node:type()) or ("call" == node:type()))
42+
return (("expression_statement" == node:type()) or ("import_statement" == node:type()) or ("import_from_statement" == node:type()) or ("with_statement" == node:type()) or ("function_definition" == node:type()) or ("for_statement" == node:type()) or ("call" == node:type()))
4343
end
4444
_2amodule_2a["form-node?"] = form_node_3f
4545
local function with_repl_or_warn(f, opts)
@@ -205,19 +205,19 @@ local function start()
205205
if not pcall(_18_) then
206206
return log.append({(comment_prefix .. "(error) The python client requires a python treesitter parser in order to function."), (comment_prefix .. "(error) See https://github.com/nvim-treesitter/nvim-treesitter"), (comment_prefix .. "(error) for installation instructions.")})
207207
else
208-
local function _19_()
209-
local function _20_(repl)
210-
local function _21_(msgs)
208+
local function _20_()
209+
local function _21_(repl)
210+
local function _22_(msgs)
211211
return nil
212212
end
213-
return repl.send(prep_code(update_python_displayhook), _21_, nil)
213+
return repl.send(prep_code(update_python_displayhook), _22_, nil)
214214
end
215-
return display_repl_status("started", with_repl_or_warn(_20_))
215+
return display_repl_status("started", with_repl_or_warn(_21_))
216216
end
217-
local function _22_(err)
217+
local function _23_(err)
218218
return display_repl_status(err)
219219
end
220-
local function _23_(code, signal)
220+
local function _24_(code, signal)
221221
if (("number" == type(code)) and (code > 0)) then
222222
log.append({(comment_prefix .. "process exited with code " .. code)})
223223
else
@@ -228,10 +228,10 @@ local function start()
228228
end
229229
return stop()
230230
end
231-
local function _26_(msg)
231+
local function _27_(msg)
232232
return log.dbg(format_msg(unbatch({msg})), {["join-first?"] = true})
233233
end
234-
return a.assoc(state(), "repl", stdio.start({["prompt-pattern"] = cfg({"prompt-pattern"}), cmd = cfg({"command"}), ["delay-stderr-ms"] = cfg({"delay-stderr-ms"}), ["on-success"] = _19_, ["on-error"] = _22_, ["on-exit"] = _23_, ["on-stray-output"] = _26_}))
234+
return a.assoc(state(), "repl", stdio.start({["prompt-pattern"] = cfg({"prompt-pattern"}), cmd = cfg({"command"}), ["delay-stderr-ms"] = cfg({"delay-stderr-ms"}), ["on-success"] = _20_, ["on-error"] = _23_, ["on-exit"] = _24_, ["on-stray-output"] = _27_}))
235235
end
236236
end
237237
end
@@ -249,11 +249,11 @@ local function on_exit()
249249
end
250250
_2amodule_2a["on-exit"] = on_exit
251251
local function interrupt()
252-
local function _30_(repl)
252+
local function _31_(repl)
253253
local uv = vim.loop
254254
return uv.kill(repl.pid, uv.constants.SIGINT)
255255
end
256-
return with_repl_or_warn(_30_)
256+
return with_repl_or_warn(_31_)
257257
end
258258
_2amodule_2a["interrupt"] = interrupt
259259
local function on_filetype()

lua/conjure/tree-sitter.lua

+14-14
Original file line numberDiff line numberDiff line change
@@ -148,27 +148,27 @@ _2amodule_2a["get-leaf"] = get_leaf
148148
local function node_surrounded_by_form_pair_chars_3f(node, extra_pairs)
149149
local node_str = node__3estr(node)
150150
local first_and_last_chars = text["first-and-last-chars"](node_str)
151-
local function _16_(_14_)
152-
local _arg_15_ = _14_
153-
local start = _arg_15_[1]
154-
local _end = _arg_15_[2]
151+
local function _17_(_15_)
152+
local _arg_16_ = _15_
153+
local start = _arg_16_[1]
154+
local _end = _arg_16_[2]
155155
return (first_and_last_chars == (start .. _end))
156156
end
157-
local function _19_(_17_)
158-
local _arg_18_ = _17_
159-
local start = _arg_18_[1]
160-
local _end = _arg_18_[2]
157+
local function _20_(_18_)
158+
local _arg_19_ = _18_
159+
local start = _arg_19_[1]
160+
local _end = _arg_19_[2]
161161
return (text["starts-with"](node_str, start) and text["ends-with"](node_str, _end))
162162
end
163-
return (a.some(_16_, config["get-in"]({"extract", "form_pairs"})) or a.some(_19_, extra_pairs) or false)
163+
return (a.some(_17_, config["get-in"]({"extract", "form_pairs"})) or a.some(_20_, extra_pairs) or false)
164164
end
165165
_2amodule_2a["node-surrounded-by-form-pair-chars?"] = node_surrounded_by_form_pair_chars_3f
166166
local function node_prefixed_by_chars_3f(node, prefixes)
167167
local node_str = node__3estr(node)
168-
local function _20_(prefix)
168+
local function _21_(prefix)
169169
return text["starts-with"](node_str, prefix)
170170
end
171-
return (a.some(_20_, prefixes) or false)
171+
return (a.some(_21_, prefixes) or false)
172172
end
173173
_2amodule_2a["node-prefixed-by-chars?"] = node_prefixed_by_chars_3f
174174
local function get_form(node)
@@ -182,9 +182,9 @@ local function get_form(node)
182182
elseif (leaf_3f(node0) or (false == client["optional-call"]("form-node?", node0))) then
183183
return get_form(parent(node0))
184184
else
185-
local _let_22_ = (client["optional-call"]("get-form-modifier", node0) or {})
186-
local modifier = _let_22_["modifier"]
187-
local res = _let_22_
185+
local _let_23_ = (client["optional-call"]("get-form-modifier", node0) or {})
186+
local modifier = _let_23_["modifier"]
187+
local res = _let_23_
188188
if (not modifier or ("none" == modifier)) then
189189
return node0
190190
elseif ("parent" == modifier) then

0 commit comments

Comments
 (0)