Add shape_garbage (#14626)

# Description

Adds `$env.config.color_config.shape_garbage` to the default config so
that it is populated out of the box.

Thanks to @PerchunPak for finding that it was missing.

# User-Facing Changes

I think this is useful on two levels, but it will be a change for a lot
of users:

1. Accessing it won't generate an error out-of-the-box
2. Garbage errors are highlighted in reverse-red in real-time in the
REPL. This means that, for example, typing just a `$` will start out as
an error - Once a valid variable (e.g., `$env`) is completed, then the
highlight will change to the parsed shape.

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

N/A
This commit is contained in:
Douglas 2024-12-18 20:43:26 -05:00 committed by GitHub
parent 11375c19d2
commit bf8763fc11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,4 +60,9 @@ $env.config.color_config = {
shape_variable: purple shape_variable: purple
shape_vardecl: purple shape_vardecl: purple
shape_raw_string: light_purple shape_raw_string: light_purple
shape_garbage: {
fg: white
bg: red
attr: b
}
} }