Skip to content

Commit

Permalink
fix: escape backslashes in anonymous nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ribru17 committed Oct 27, 2024
1 parent 3d73b1a commit 1fc1335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ impl LanguageServer for Backend {
} else {
lang.node_kind_for_id(i)
.unwrap()
.replace('\\', r#"\\"#)
.replace('"', r#"\""#)
.replace("\n", r#"\n"#)
};
Expand Down

0 comments on commit 1fc1335

Please sign in to comment.