From 1fc1335e97bad3a0fdd21b0ac0554af6b30ed7e7 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sun, 27 Oct 2024 07:34:05 -0700 Subject: [PATCH] fix: escape backslashes in anonymous nodes --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 8976e14..0ddf896 100644 --- a/src/main.rs +++ b/src/main.rs @@ -469,6 +469,7 @@ impl LanguageServer for Backend { } else { lang.node_kind_for_id(i) .unwrap() + .replace('\\', r#"\\"#) .replace('"', r#"\""#) .replace("\n", r#"\n"#) };