From 7b92d6dc2ef9bc59648be6113a38628e1839ba97 Mon Sep 17 00:00:00 2001 From: Jason Shipman Date: Thu, 17 Jul 2025 10:19:59 -0400 Subject: [PATCH] Detect if useBitLib flag should be passed to compiler options --- src/fennel-ls/compiler.fnl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fennel-ls/compiler.fnl b/src/fennel-ls/compiler.fnl index 8cb2bd5..4819c87 100644 --- a/src/fennel-ls/compiler.fnl +++ b/src/fennel-ls/compiler.fnl @@ -376,6 +376,7 @@ identifiers are declared / referenced in which places." :allowedGlobals allowed-globals :useMetadata true :requireAsInclude false + :useBitLib (not ((or _G.loadstring _G.load) "return 1&1")) : warn : scope} filter-errors (fn _filter-errors [component ...]