Skip to content

Commit c36e48a

Browse files
committed
Escape group names when creating rules
1 parent 190ee8b commit c36e48a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/gmake2/gmake2_workspace.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
local tr = p.workspace.grouptree(wks)
129129
tree.traverse(tr, {
130130
onbranch = function(n)
131-
table.insert(groups, n.path)
131+
table.insert(groups, p.esc(n.path))
132132
end
133133
})
134134

@@ -146,7 +146,7 @@
146146
local tr = p.workspace.grouptree(wks)
147147
tree.traverse(tr, {
148148
onbranch = function(n)
149-
local rule = n.path .. ":"
149+
local rule = p.esc(n.path) .. ":"
150150
local projectTargets = {}
151151
local groupTargets = {}
152152
for i, c in pairs(n.children)

0 commit comments

Comments
 (0)