File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,14 @@ function M.parse_section(text)
209
209
}
210
210
211
211
local target = prefix
212
+
213
+ local workspace = prefix :match (" ^workspace%.$" )
214
+ if workspace then
215
+
216
+ target = " "
217
+ prefix = " "
218
+ end
219
+
212
220
local dev_target = prefix :match (" ^(.*)dev%-$" )
213
221
if dev_target then
214
222
target = vim .trim (dev_target )
Original file line number Diff line number Diff line change @@ -209,6 +209,14 @@ function M.parse_section(text: string): Section
209
209
}
210
210
211
211
local target = prefix
212
+
213
+ local workspace = prefix:match("^workspace % .$ ")
214
+ if workspace then
215
+ -- the workspace table only allows a regular dependencies sub -table
216
+ target = ""
217
+ prefix = ""
218
+ end
219
+
212
220
local dev_target = prefix:match("^(.*)dev % -$ ")
213
221
if dev_target then
214
222
target = vim .trim (dev_target )
You can’t perform that action at this time.
0 commit comments