diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index 58b6de34..375846b0 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -2981,8 +2981,8 @@ mod test {
                 "      (macro_invocation\n",
                 "        macro: (identifier) \"!\"\n",
                 "        (token_tree \"(\"\n",
-                "          (string_literal \"\"\"\n",
-                "            (string_content) \"\"\") \")\")) \";\") \"}\"))",
+                "          (string_literal \"\\\"\"\n",
+                "            (string_content) \"\\\"\") \")\")) \";\") \"}\"))",
             ),
             0,
             source.len(),