Skip to content
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

Support multiline prerequisites #23

Open
nk9 opened this issue Jul 26, 2023 · 3 comments
Open

Support multiline prerequisites #23

nk9 opened this issue Jul 26, 2023 · 3 comments
Labels
help wanted Extra attention is needed upstream change

Comments

@nk9
Copy link
Owner

nk9 commented Jul 26, 2023

Implemented with casey/just#1551

Examples of now-valid syntax:

default: a \
         b \
         c
a:
  echo a
b:
  echo b
c:
  echo c
default: a\
b\
c
a:
  echo a
b:
  echo b
c:
  echo c

And this should be marked as invalid:

default: a\ b
@nk9 nk9 assigned nk9 and unassigned nk9 Jul 26, 2023
@nk9 nk9 added the help wanted Extra attention is needed label Jul 26, 2023
@laniakea64
Copy link

laniakea64 commented Jul 30, 2023

Hi @nk9 , I've been playing with this syntax for vim-just and found it works with much more than just recipe prerequisites. Although I can't help with Sublime syntax, wondering if this is extensive enough that we should work together on a test case justfile for this?

To illustrate, the following is now a valid justfile in pre-release just - https://github.com/NoahTheDuke/vim-just/blob/just-prerelease/tests/cases/line-continuations.just
Is it missing any other cases where this new line continuation syntax works?

@nk9
Copy link
Owner Author

nk9 commented Jul 30, 2023

Hmm, interesting. I wonder if that was intentional. Let's ask @casey about it.

@laniakea64
Copy link

To illustrate, the following is now a valid justfile in pre-release just -

This file is now in a branch of the vim-just repo, updated the link above and added a few extra cases. It seems this new line continuation syntax also works in interpolations, provided that the line following the continuation starts with the same indentation as the recipe body's indentation (although what comes after that can include additional indentation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed upstream change
Projects
None yet
Development

No branches or pull requests

2 participants