diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-01-16 15:48:25 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-01-16 15:48:25 +0100 |
| commit | 0cb4052a648394d0b1c40cd464fb658910fb8062 (patch) | |
| tree | 6fcc92ae1a568c142c0a2bd1982b08964e7312e2 /lua | |
| parent | e136e348cbd0ea4bf2dd8de6f98da1ca1924bc96 (diff) | |
| parent | 0eb675b33fdc309b5124b4164b5333ef4a64a1d8 (diff) | |
| download | vis-0cb4052a648394d0b1c40cd464fb658910fb8062.tar.gz vis-0cb4052a648394d0b1c40cd464fb658910fb8062.tar.xz | |
Merge branch 'master' of https://github.com/silasdb/vis
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lexers/bash.lua | 2 |
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) |
