vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit c0dda603fc40f6a70c95e691049f0000dac72887 parent 3164a5de601156ebb6f2645d27d9a5a5fccc8ea1 Author: Aki <please@ignore.pl> Date: Mon, 16 Aug 2021 22:24:18 +0200 Makefile lexer now supports multiple targets in single definition Diffstat:
| M | lua/lexers/makefile.lua | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lua/lexers/makefile.lua b/lua/lexers/makefile.lua @@ -72,7 +72,8 @@ local special_target = token(l.CONSTANT, l.word_match({ '.SILENT', '.EXPORT_ALL_VARIABLES', '.NOTPARALLEL', '.ONESHELL', '.POSIX' }, '.')) local normal_target = token('target', (l.any - l.space - S(':#='))^1) -local target = l.starts_line((special_target + normal_target) * ws^0 * +local target_list = normal_target * (ws * normal_target)^0 +local target = l.starts_line((special_target + target_list) * ws^0 * #(':' * -P('='))) -- Identifiers.