Permalink
Browse files

quick fix for CR in heredocs

  • Loading branch information...
1 parent 854d3b9 commit 52b7b159d021c5a4a220a7887a1f7d719340dd26 @NotFound committed Jun 9, 2012
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;

0 comments on commit 52b7b15

Please sign in to comment.