Skip to content

Commit 1c49572

Browse files
committed
Don't treat field_expression or argument_list as forms #617
1 parent 590d4bc commit 1c49572

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

fnl/conjure/client/julia/stdio.fnl

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
(local buf-suffix ".jl")
3131
(local comment-prefix "# ")
3232

33+
(fn form-node? [node]
34+
(and (not= "field_expression" (node:type))
35+
(not= "argument_list" (node:type))))
36+
3337
(fn with-repl-or-warn [f _opts]
3438
(let [repl (state :repl)]
3539
(if repl
@@ -174,6 +178,7 @@
174178
{: buf-suffix
175179
: comment-prefix
176180
: unbatch
181+
: form-node?
177182
: format-msg
178183
: get-form-modifier
179184
: eval-str

lua/conjure/client/julia/stdio.lua

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)