From e90651230fe9829368234196087c69f3fcb99449 Mon Sep 17 00:00:00 2001 From: onrcn Date: Mon, 22 Dec 2025 15:40:00 +0300 Subject: [PATCH] fix(meson): allow hyphens in target names - Updated the Meson parser regex to include the '-' (hyphen) class. - This ensures targets like 'my-app' are correctly detected and captured by the BAU frontend. --- lua/compiler/utils-bau.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/compiler/utils-bau.lua b/lua/compiler/utils-bau.lua index db6210a4..cf71121a 100644 --- a/lua/compiler/utils-bau.lua +++ b/lua/compiler/utils-bau.lua @@ -98,7 +98,7 @@ local function get_meson_opts(path) file:close() -- Parse executable entries - for target in content:gmatch("executable%s*%(.-['\"]([%w_]+)['\"]") do + for target in content:gmatch("executable%s*%(.-['\"]([%w_-]+)['\"]") do table.insert( options, { text = "Meson " .. target, value = target, bau = "meson" } @@ -106,7 +106,7 @@ local function get_meson_opts(path) end -- Parse custom_target entries - for target in content:gmatch("custom_target%s*%(%s*'([^']+)'") do + for target in content:gmatch("custom_target%s*%(.-['\"]([%w_-]+)['\"]") do table.insert( options, { text = "Meson " .. target, value = target, bau = "meson" }