aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/makefile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers/makefile.lua')
-rw-r--r--lua/lexers/makefile.lua3
1 files changed, 2 insertions, 1 deletions
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.