mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-29 06:01:16 -03:00
The highlighter already resolves command type (builtin, function, external) on every keystroke but discarded that information, always emitting HighlightRole::Command. This surfaces the type by changing command_is_valid to return a CommandType enum (Builtin, Function, Other, Invalid) and passing it to color_command, which selects the matching HighlightRole. Both new roles fall back to HighlightRole::Command (and thus fish_color_command) when their variable is unset, so existing configurations are unaffected. Closes #12775 Closes #12837