-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code block syntax for editor plugin #6
Comments
I am using |
Cool, are they part of the sapf syntax or are you just ignoring those symbols before passing to sapf? Would be nice to agree on something that also works for the examples. |
The REPL evaluates line by line unless you are inside of a string, parentheses, a lambda, an array, or a form. |
Parentheses then! Would be nice if the examples used parentheses IMHO. |
Or I could just accept both parentheses and functions (with no indentation) as blocks in my plugin. Parentheses around functions doesn't really help readability IMO. |
I started working on a sapf plugin for neovim, that works in a similar manner as scnvim.
The plugin spawns sapf in the background and allows evaluating the current selection in a vim buffer.
I came across a question which is, what defines the start and end of a code block that should be evaluated? In SC we have the
()
. But is there an equivalent in sapf?Should such a plugin evaluate the innermost function only or perhaps search outwards until we find a line that doesn't begin with
\[
or]
?My initial implementation uses the indentation to detect blocks but it would be better to use the language syntax.
The text was updated successfully, but these errors were encountered: