nushell/crates
dj-sourbrough 48fca1c151
Fix: lex now throws error on unbalanced closing parentheses (issue #11982) (#12098)
- Fixes issue #11982 

# Description
Expressions with unbalanced parenthesis [excess closing ')' parenthesis]
will throw an error instead of interpreting ')' as a string.

Solved he same way as closing braces '}' are handled.

![Screenshot 2024-03-06 at 14 53
46](https://github.com/nushell/nushell/assets/56027726/86834e47-a1e5-484d-881d-0e3b80fecef8)

![Screenshot 2024-03-06 at 14 48
27](https://github.com/nushell/nushell/assets/56027726/bb27c969-6a3b-4735-8a1e-a5881d9096d3)

# User-Facing Changes
- Trailing closing parentheses ')' which do not match the number of
opening parentheses '(' will lead to a parse error.
- From what I have found in the documentation this is the intended
behavior, thus no documentation has been updated on my part

# Tests + Formatting
- Two tests added in src/tests/test_parser.rs
- All previous tests are still passing
- cargo fmt, clippy and test have been run

Unable to get the following command run
- `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library
![Screenshot 2024-03-06 at 20 06
25](https://github.com/nushell/nushell/assets/56027726/91724fb9-d7d0-472b-bf14-bfa2a7618d09)

---------

Co-authored-by: Noak Jönsson <noakj@kth.se>
2024-03-07 06:05:04 -06:00
..
nu-cli Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-cmd-base Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-cmd-dataframe Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-cmd-extra Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-cmd-lang Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-color-config Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-command Fix chrono deprecation warnings (#12091) 2024-03-07 06:01:30 -06:00
nu-engine Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-explore Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-glob Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-json Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-lsp Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-parser Fix: lex now throws error on unbalanced closing parentheses (issue #11982) (#12098) 2024-03-07 06:05:04 -06:00
nu-path Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-plugin Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-pretty-hex Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-protocol Fix chrono deprecation warnings (#12091) 2024-03-07 06:01:30 -06:00
nu-std Fix: Convert help example results to text (#12078) 2024-03-07 06:00:34 -06:00
nu-system Fix chrono deprecation warnings (#12091) 2024-03-07 06:01:30 -06:00
nu-table Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-term-grid Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-test-support Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-utils Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_custom_values Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_example Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_formats Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_gstat Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_inc Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_python Add Goodbye message to ensure plugins exit when they are no longer needed (#12014) 2024-02-28 20:41:22 -06:00
nu_plugin_query Bump scraper from 0.18.1 to 0.19.0 (#12060) 2024-03-07 08:23:28 +08:00
nu_plugin_stream_example Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.