Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

quick fix for CR in heredocs

  • Loading branch information...
commit 52b7b159d021c5a4a220a7887a1f7d719340dd26 1 parent 854d3b9
@NotFound authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 winxedst2.winxed
View
4 winxedst2.winxed
@@ -620,6 +620,8 @@ function getheredoc(var tk, string start, int linenum)
switch (c) {
case "":
UnterminatedHeredoc(tk, linenum);
+ case "\r":
+ break; // Quick fix for windows line-ending text files
case "\"":
case "\\":
// Encode the mark the same way as the heredoc content
@@ -639,6 +641,8 @@ function getheredoc(var tk, string start, int linenum)
switch (c) {
case "":
UnterminatedHeredoc(tk, linenum);
+ case "\r":
+ break; // Quick fix for windows line-ending text files
case "\"":
case "\\":
c = "\\" + c;
Please sign in to comment.
Something went wrong with that request. Please try again.