Skip to content

Commit 0802a02

Browse files
committed
Bugfix + test cases added, closes #106
- another commit, was necessary because of having merge problems (branch was still in rebase mode)
1 parent 9dfa8fe commit 0802a02

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

basheditor-plugin/src/main/java/de/jcup/basheditor/script/parser/HereDocParserSupport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ private boolean isEndLiteralFound(String originLiteralToFind, StringBuilder part
218218
private boolean isLiteralWhenFirstAndLastCharsRemoved(String literalToFind, String partScanString) {
219219
int beginIndex = 1;
220220
int endIndex = literalToFind.length() - beginIndex;
221+
221222
if (endIndex<=beginIndex){
222223
return false;
223224
}

basheditor-plugin/src/test/java/de/jcup/basheditor/script/parser/TokenParserTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public void bug_106_cat_with_heredoc_followed_by_negative_and_string_throws_no_e
4545
public void bug_106_cat_with_heredoc_followed_by_negative_and_string_has_expected_tokens() throws Exception{
4646
assertParsing("cat <<-\" OF\"").resultsIn("cat","<<-\" OF\"");
4747
}
48-
4948

5049
@Test
5150
public void bug_105_$_directly_followed_by_simple_string() throws Exception {

0 commit comments

Comments
 (0)