mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
fish_indent to stop stripping quotes from keywords
This commit is contained in:
parent
159d6d669a
commit
8e640cdcc5
@ -245,11 +245,7 @@ void prettifier_t::prettify_node(const parse_node_tree_t &tree, node_offset_t no
|
|||||||
last_was_semicolon = false;
|
last_was_semicolon = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.keyword != parse_keyword_none) {
|
if (node.has_source()) {
|
||||||
append_whitespace(node_indent);
|
|
||||||
output.append(keyword_description(node.keyword));
|
|
||||||
has_new_line = false;
|
|
||||||
} else if (node.has_source()) {
|
|
||||||
// Some type representing a particular token.
|
// Some type representing a particular token.
|
||||||
if (prev_node_type != parse_token_type_redirection) {
|
if (prev_node_type != parse_token_type_redirection) {
|
||||||
append_whitespace(node_indent);
|
append_whitespace(node_indent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user