From dab18e2fee6287c8a525d0f62eae14d686e7cd42 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 29 Sep 2018 12:10:04 +0200 Subject: [PATCH] Highlight .tscn, .tres and project.godot files using INI syntax This also removes header detection for INI syntax, which could occasionally cause other file types (such as systemd service files) to be detected as INI. --- runtime/syntax/ini.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/syntax/ini.yaml b/runtime/syntax/ini.yaml index 765a8581..902d66a3 100644 --- a/runtime/syntax/ini.yaml +++ b/runtime/syntax/ini.yaml @@ -1,8 +1,7 @@ filetype: ini -detect: - filename: "\\.(ini|desktop|lfl|override)$|(mimeapps\\.list|pinforc|setup\\.cfg)$|weechat/.+\\.conf$" - header: "^\\[[A-Za-z]+\\]$" +detect: + filename: "\\.(ini|desktop|lfl|override|tscn|tres)$|(mimeapps\\.list|pinforc|setup\\.cfg|project\\.godot)$|weechat/.+\\.conf$" rules: - constant.bool.true: "\\btrue\\b"