aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers')
-rw-r--r--lua/lexers/bash.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lexers/bash.lua b/lua/lexers/bash.lua
index 2fa72f2..207cb22 100644
--- a/lua/lexers/bash.lua
+++ b/lua/lexers/bash.lua
@@ -21,7 +21,7 @@ local heredoc = '<<' * P(function(input, index)
local s, e, _, delimiter =
input:find('%-?(["\']?)([%a_][%w_]*)%1[\n\r\f;]+', index)
if s == index and delimiter then
- local _, e = input:find('[\n\r\f]+'..delimiter, e)
+ local _, e = input:find('[\n\r\f]+'..delimiter..'\n', e)
return e and e + 1 or #input + 1
end
end)