nushell/crates/nu-parser/src
Stefan Holderbach c4d2b787aa
Add did-you-mean suggestions for operators (#7251)
# Description

Adds a `ParseError::UnkownOperator` and covers `^`,`pow`,`is`,`===`,`%`,
and `contains` as likely operators based on other languages. Provides
suggestion for the user to find the nu language feature they are looking
for.


![image](https://user-images.githubusercontent.com/15833959/204108373-d1165988-ad87-4a2e-bd81-b67a44072571.png)


# Tests + Formatting

(-)
2022-11-27 10:59:43 +13:00
..
deparse.rs fix arg parse (#5754) 2022-06-11 20:52:31 +12:00
errors.rs Add did-you-mean suggestions for operators (#7251) 2022-11-27 10:59:43 +13:00
flatten.rs Make external command substitution works friendly(like fish shell, trailing ending newlines) (#7156) 2022-11-23 16:51:57 +13:00
known_external.rs Change how to identify custom comamnd (#6187) 2022-08-02 18:40:07 -05:00
lex.rs Stdout/Stderr redirection (#7185) 2022-11-23 07:26:13 +13:00
lib.rs Parser refactoring for improving pipelines (#7162) 2022-11-19 10:46:48 +13:00
parse_keywords.rs Reorder export-env eval and allow reloading an overlay (#7231) 2022-11-24 23:45:24 +01:00
parser.rs Add did-you-mean suggestions for operators (#7251) 2022-11-27 10:59:43 +13:00
type_check.rs Add logical xor operator (#7242) 2022-11-26 17:02:37 +01:00