From 2da26484dddbfce03fd158e5f9eebcedf9c48e2c Mon Sep 17 00:00:00 2001 From: MichaelRogSys <30909124+MichaelRogsys@users.noreply.github.com> Date: Thu, 12 Feb 2026 02:23:46 +0800 Subject: [PATCH] Add 'conf' extension to INI file detection As per the bug report I raised, the regex for the filename detection is malformed. Moving the .conf at the end of the pattern to the generic list at the front allows the ini filetype to be accosiated with .conf files. Bug report: ini.yaml - Code Highlighter Misses .conf Files #4004 --- runtime/syntax/ini.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/ini.yaml b/runtime/syntax/ini.yaml index 902d66a3b7..da4c00a3d0 100644 --- a/runtime/syntax/ini.yaml +++ b/runtime/syntax/ini.yaml @@ -1,7 +1,7 @@ filetype: ini detect: - filename: "\\.(ini|desktop|lfl|override|tscn|tres)$|(mimeapps\\.list|pinforc|setup\\.cfg|project\\.godot)$|weechat/.+\\.conf$" + filename: "\\.(ini|desktop|lfl|override|tscn|tres|conf)$|(mimeapps\\.list|pinforc|setup\\.cfg|project\\.godot)$|weechat/.+\\.conf$" rules: - constant.bool.true: "\\btrue\\b"