fixed bug when heredoc starts by \; removing \n from a heredoc value end

This commit is contained in:
z7zmey
2018-07-14 18:00:48 +03:00
parent 4da7b36056
commit 867095823d
11 changed files with 848 additions and 791 deletions

View File

@@ -70,15 +70,6 @@ LBL;
Value: "var",
},
},
&scalar.EncapsedStringPart{
Position: &position.Position{
StartLine: 2,
EndLine: 2,
StartPos: 20,
EndPos: 20,
},
Value: "\n",
},
},
},
},
@@ -152,15 +143,6 @@ LBL;
Value: "var",
},
},
&scalar.EncapsedStringPart{
Position: &position.Position{
StartLine: 2,
EndLine: 2,
StartPos: 22,
EndPos: 22,
},
Value: "\n",
},
},
},
},
@@ -213,9 +195,9 @@ LBL;
StartLine: 2,
EndLine: 2,
StartPos: 13,
EndPos: 22,
EndPos: 21,
},
Value: "test $var\n",
Value: "test $var",
},
},
},
@@ -313,9 +295,9 @@ CAD;
StartLine: 2,
EndLine: 2,
StartPos: 11,
EndPos: 17,
EndPos: 16,
},
Value: "\thello\n",
Value: "\thello",
},
},
},