Skip to main content

has_backslash_whitespace

Function has_backslash_whitespace 

Source
pub fn has_backslash_whitespace(command: &str) -> bool
Expand description

True if the command contains backslash immediately before whitespace. Bash treats \ as a literal escaped space, but tree-sitter returns the raw text with the backslash present. We conservatively reject these cases.