vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 9b573de364a3d38030201a8d32ec2da33cb332b9
parent fb3d15c8d173b3d21e95cca877d2c79d602c4e12
Author: S. Gilles <sgilles@math.umd.edu>
Date:   Tue,  7 Feb 2017 23:59:36 -0500

Allow {} to be nested in shell variables

This allows lines like

    : ${FOO:="${bar}/baz"}

to be highlighted correctly.

Diffstat:
Mlua/lexers/bash.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua/lexers/bash.lua b/lua/lexers/bash.lua @@ -46,7 +46,7 @@ local identifier = token(l.IDENTIFIER, l.word) -- Variables. local variable = token(l.VARIABLE, '$' * (S('!#?*@$') + l.digit^1 + l.word + - l.delimited_range('{}', true, true))) + l.delimited_range('{}', true, true, true))) -- Operators. local operator = token(l.OPERATOR, S('=!<>+-/*^&|~.,:;?()[]{}'))