From 86b3f73daf56e3d80ac62c32e279aa3938bdb3d7 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Mon, 20 Jul 2026 14:23:45 +0200 Subject: [PATCH] fix: add all-caps EXTERNAL* variants to allowed VAR attributes VCI-exported .scl files use all-caps attribute names (EXTERNALACCESSIBLE, EXTERNALVISIBLE, EXTERNALWRITABLE) which were not in the allowed list, triggering spurious SCL005 warnings. --- src/diagnostics.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/diagnostics.lua b/src/diagnostics.lua index ccd8647..5d0c466 100644 --- a/src/diagnostics.lua +++ b/src/diagnostics.lua @@ -106,6 +106,9 @@ function M.validate_diagnostics(content, workspace_types, root_dir) ExternalWRITABLE = true, -- case variant ExternalVISIBLE = true, ExternalACCESSIBLE = true, + EXTERNALWRITABLE = true, -- all-caps VCI export variant + EXTERNALVISIBLE = true, -- all-caps VCI export variant + EXTERNALACCESSIBLE = true,-- all-caps VCI export variant S7_SetPoint = true, S7_Optimized_Access = true, }