fn strip_trailing_comment(input: &str) -> &str
Strip a trailing comment from a line, returning just the code portion. For multi-line input, only considers the last non-empty line.