Function format_s_expr
Source pub fn format_s_expr(input: &str) -> String
Expand description
Format a tree-sitter S-Expression.
§Arguments
input
- The S-Expression to format.
§Examples
use tree_sitter_tests_formatter::format_s_expr;
let input = "(source_file (function_declaration))";
let expected = r#"(source_file
(function_declaration)
)
"#;
assert_eq!(format_s_expr(input), expected);