We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80530d8 commit 6721894Copy full SHA for 6721894
1 file changed
helix-core/src/syntax.rs
@@ -1090,8 +1090,8 @@ fn node_is_visible(node: &Node) -> bool {
1090
}
1091
1092
fn format_anonymous_node_kind(kind: &str) -> Cow<'_, str> {
1093
- if kind.contains('"') {
1094
- Cow::Owned(kind.replace('"', "\\\""))
+ if kind.contains('"') || kind.contains('\\') {
+ Cow::Owned(kind.replace('\\', "\\\\").replace('"', "\\\""))
1095
} else {
1096
Cow::Borrowed(kind)
1097
0 commit comments