vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit fc7a095de4ca9b6ba136edc4decd00137c2a23cf parent 6dff861cc1d5f3b06d0bb3b1025367b7915f2c6e Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 16 Jan 2020 15:48:25 +0100 Merge branch 'master' of https://github.com/silasdb/vis Diffstat:
| M | lua/lexers/bash.lua | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)