Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lexers: fix bug in bash lexer for last here-doc
f4f0f5b allowed "<<-EOF" heredocs to be parsed correctly, but it introduced a bug that made the lexer fail when the beginning of a here-doc was the last string in a file (optionally followed only by blanks). In order to fix this, move everything regarding "delimiter" within the block that is executed only if "delimiter" is not nil.
- Loading branch information