-
Notifications
You must be signed in to change notification settings - Fork 1.3k
subshells highlighted as incorrect syntax #166
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
Comments
The fix would be to make the |
PS: it would be nice if your fix also handled the (more typical) use case: |
It probably will; the code has an internal notion of "at command position" ( A quick and dirty implementation is simply to add Could I persuade you to write a test case for this? |
Something like
? |
Yes, thank you. |
Committed the test in 22c8736. |
Kindly requesting a reopen, as I realized that the test I wrote was not enough: in fact, the opening parenthesis is still highlighted in red for me. This should be a more exhaustive test:
|
Good catch. I can reproduce that here, too. I extended the test in 5a38710, but I made it expect the |
I think master...danielshahaf:i166bis-subshells fixes this, but I'll give it a closer look later. |
Merged. Closing, but please re-open if anything is still wrong. |
Sorry to keep reopening this issue but the closing parenthesis should have the same highlighting as the opening one :-) |
There's no need to apologise! I agree that would be good to have, but I think it fits best as a separate ticket. Filed it as #226 ☺ |
(cd ~; ls)
: the opening parenthesis is highlighted in red; the first command (cd
) is not highlighted though the second one is.The text was updated successfully, but these errors were encountered: