-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
For #
to start a comment, then it either need to be the first chara…
#14562
For #
to start a comment, then it either need to be the first chara…
#14562
Conversation
…cter of the token or prefixed with ` ` (space). (nushell#10327)
These changes got rolled back because of an error: #14548 I fixed the error and I am trying again. |
@fdncred I did try testing #14548 (comment) but there is a lot of stuff I had to comment out: But it seemed to work. Good thing that these syntax checks are early: There were no syntax errors left. Could you check if these changes work for you now? |
FYI: This test failed before the change: |
Thanks @RobbingDaHood. No problems with my mac nushell startup with this PR. Nice work! I tested in release and debug on mac and debug on windows without issues. I don't use any of the nix tools though. Do you have time to try it out @sholderbach ? |
Let's try again with time to dogfood a bit. Thanks! |
If I understand correctly, the blow test is what was causing it to fail for me. nushell/tests/repl/test_parser.rs Lines 182 to 192 in cbf5fa6
|
@RobbingDaHood There's still a problem as described here #14605 def test [
] {
# {
# \""text"\"
# `
}
# 123 |
@fdncred who would have thought of hastags being prefixed with tabs 🙄 Found the solution, testing it now. |
Fixed here: #14616 |
This PR should close
#
in block #10327"
from output of 2nd/last$"...(... | str trim -c '"')"
before string ends #13667#
#13810Description
For
(space).
#
to start a comment, then it either need to be the first character of the token or prefixed withSo now you can do this:
User-Facing Changes
It is a breaking change if anyone expected comments to start in the middle of a string without any prefixing
(space).
Tests + Formatting
Did all:
cargo fmt --all -- --check
to check standard code formatting (cargo fmt --all
applies these changes)cargo clippy --workspace -- -D warnings -D clippy::unwrap_used
to check that you're using the standard code stylecargo test --workspace
to check that all tests pass (on Windows make sure to enable developer mode)cargo run -- -c "use toolkit.nu; toolkit test stdlib"
to run the tests for the standard libraryAfter Submitting
I cant see that I need to update anything in the documentation but please point me in the direction if there is anything.