]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/ini.yaml
Merge
[micro.git] / runtime / syntax / ini.yaml
1 filetype: ini
2
3 detect: 
4     filename: "\\.(ini|desktop|lfl|override)$|(mimeapps\\.list|pinforc|setup\\.cfg)$|weechat/.+\\.conf$"
5     header: "^\\[[A-Za-z]+\\]$"
6
7 rules:
8     - constant.bool.true: "\\btrue\\b"
9     - constant.bool.false: "\\bfalse\\b"
10     - identifier: "^[[:space:]]*[^=]*="
11     - special: "^[[:space:]]*\\[.*\\]$"
12     - statement: "[=;]"
13     - comment: "(^|[[:space:]])#([^{].*)?$"
14     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"