From c36e48a10e6c2c69624ec51c44ab51167bf65fd3 Mon Sep 17 00:00:00 2001 From: Nicholaus Clark Date: Mon, 9 May 2022 20:58:17 -0500 Subject: [PATCH] Escape group names when creating rules --- modules/gmake2/gmake2_workspace.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gmake2/gmake2_workspace.lua b/modules/gmake2/gmake2_workspace.lua index e5784ace..fc37fdc1 100644 --- a/modules/gmake2/gmake2_workspace.lua +++ b/modules/gmake2/gmake2_workspace.lua @@ -128,7 +128,7 @@ local tr = p.workspace.grouptree(wks) tree.traverse(tr, { onbranch = function(n) - table.insert(groups, n.path) + table.insert(groups, p.esc(n.path)) end }) @@ -146,7 +146,7 @@ local tr = p.workspace.grouptree(wks) tree.traverse(tr, { onbranch = function(n) - local rule = n.path .. ":" + local rule = p.esc(n.path) .. ":" local projectTargets = {} local groupTargets = {} for i, c in pairs(n.children)