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.
This commit is contained in:
Hugo Locurcio 2018-09-29 12:10:04 +02:00
parent de35d00ba7
commit dab18e2fee
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -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"