diff --git a/core/lib/Drupal/Core/Template/TwigNodeTrans.php b/core/lib/Drupal/Core/Template/TwigNodeTrans.php
index 1bacb9e..ca93682 100644
--- a/core/lib/Drupal/Core/Template/TwigNodeTrans.php
+++ b/core/lib/Drupal/Core/Template/TwigNodeTrans.php
@@ -84,7 +84,7 @@ public function compile(\Twig_Compiler $compiler) {
 
     // Append translation debug markup, if necessary.
     if ($compiler->getEnvironment()->isDebug()) {
-      $compiler->raw(" . '\n<!-- TRANSLATION: ");
+      $compiler->raw(" . '\n<!-- TRANSLATION: ' . ");
       $compiler->subcompile($singular);
       if (!empty($plural)) {
         $compiler->raw(', PLURAL: ')->subcompile($plural);
@@ -94,7 +94,7 @@ public function compile(\Twig_Compiler $compiler) {
           $compiler->raw(', ' . Unicode::strtoupper($pair['key']->getAttribute('value')) . ': ')->subcompile($pair['value']);
         }
       }
-      $compiler->raw(" -->\n'");
+      $compiler->raw(" . '-->\n'");
     }
 
     // End writing.
