-
Notifications
You must be signed in to change notification settings - Fork 476
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
add new line escapes #1157
Comments
For the
|
then there also should be added spaces var := (
"a " +
"b " +
"c " +
"..."
) |
For the record, a workaround for prerequisites is currently available by nesting them, e.g.: @compound: a b
echo "compound"
@a: one two three
@b: four five six
@one:
echo "one"
@two:
echo "two"
@three:
echo "three"
@four:
echo "four"
@five:
echo "five"
@six:
echo "six" $ just compound
one
two
three
four
five
six
compound |
[Moved from the PR since it's already been merged.] @casey, @laniakea64 has noticed that this works in a bunch of other cases. See nk9/just_sublime#23 and this gist: https://gist.github.com/laniakea64/b3381389beca11226cb8fefc4e1abf85 Just wanted to check: is this intentional/desired? If it is, there should probably be a lot more tests. I should note that things like allowing an escaped newline between |
I think this is as expected. Only allowing |
I think languages that allow newline escaping like this (which is pretty common) generally do so at a lexing level like this, so you can have an escaped newline anywhere a space can be. That's the behavior I'd expect. It's useful in various contexts. And it's not a problem if it's allowed in places where it seems unusual to use. But if there are any specific behaviors that seem buggy, that's something to address. |
here is Makefile
it would be nice to have this also in Just
and some more examples
The text was updated successfully, but these errors were encountered: