Commits

Jakub Wilk  committed b14acb8

Fix the case where the source file ends with ‘<’ or ‘<$’ text.

  • Participants
  • Parent commits e45c01a

Comments (0)

Files changed (1)

         case STATE_HASH:
         case STATE_HASH_BANG:
         case STATE_TEXT:
+            sputs("'\n");
+            break;
         case STATE_TEXT_LT:
+            sputs("<'\n");
+            break;
         case STATE_TEXT_LT_DOLLAR:
-            sputs("'\n");
+            sputs("<$'\n");
             break;
         default:
             break;