From 6414762b32ed20b5c37fc3ca65f20ab03530f331 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 16 Aug 2021 22:24:18 +0200 Subject: Makefile lexer now supports multiple targets in single definition --- lua/lexers/makefile.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lexers/makefile.lua b/lua/lexers/makefile.lua index 1267249..aaf2dc0 100644 --- 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. -- cgit v1.2.3