nushell/crates/nu-command
mike fb72da0e82
unify the *-BuiltinVar parser errors (#8944)
# Description

this pr condenses `MutBuiltinVar`, `LetBuiltinVar` and `ConstBuiltinVar`
into one error:
```nu
Error: nu::parser::name_is_builtin_var

  × `in` used as variable name.
   ╭─[entry #69:1:1]
 1 │ let in = 420
   ·     ─┬
   ·      ╰── already a builtin variable
   ╰────
  help: 'in' is the name of a builtin Nushell variable and cannot be used
        as a variable name
```

it also fixes this case which was previously not handled
```nu
let $nu = 420 # this variable would have been 'lost'
```
2023-04-20 19:44:31 +02:00
..
assets refactor html module (#5246) 2022-04-20 08:50:14 -05:00
src allow find command to look in specified columns only (#8937) 2023-04-20 08:13:12 -05:00
tests unify the *-BuiltinVar parser errors (#8944) 2023-04-20 19:44:31 +02:00
Cargo.toml Upgrade open crate to fix WSL bug (#8905) 2023-04-16 22:05:40 -07:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00