3c01947cb3
Fixes #1094
25 lines
628 B
YAML
25 lines
628 B
YAML
filetype: ini
|
|
|
|
detect:
|
|
filename: "\\.(ini|desktop|lfl|override)$|(mimeapps\\.list|pinforc|setup\\.cfg)$|weechat/.+\\.conf$"
|
|
header: "^\\[[A-Za-z]+\\]$"
|
|
|
|
rules:
|
|
- constant.bool.true: "\\btrue\\b"
|
|
- constant.bool.false: "\\bfalse\\b"
|
|
- identifier: "^[[:space:]]*[^=]*="
|
|
- special: "^[[:space:]]*\\[.*\\]$"
|
|
- statement: "[=;]"
|
|
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
|
|
|
- comment:
|
|
start: "#"
|
|
end: "$"
|
|
rules:
|
|
- todo: "(TODO|XXX|FIXME):?"
|
|
- comment:
|
|
start: ";"
|
|
end: "$"
|
|
rules:
|
|
- todo: "(TODO|XXX|FIXME):?"
|