Skip to main content

is_executable_shell_lang

Function is_executable_shell_lang 

Source
pub fn is_executable_shell_lang(lang: &str) -> bool
Expand description

Whether a fenced-code-block language tag denotes an executable shell.

Why: Shell blocks get a distinct visual treatment from other languages so a reader can spot “this is something you could paste into a terminal” at a glance. What: Matches bash, sh, zsh, fish (case-insensitive — caller passes a lowercased tag). Test: tests::is_executable_shell_lang_matches_shells.