]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/ini.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / ini.yaml
1 filetype: ini
2
3 detect:
4     filename: "\\.(ini|desktop|lfl|override|tscn|tres)$|(mimeapps\\.list|pinforc|setup\\.cfg|project\\.godot)$|weechat/.+\\.conf$"
5
6 rules:
7     - constant.bool.true: "\\btrue\\b"
8     - constant.bool.false: "\\bfalse\\b"
9     - identifier: "^[[:space:]]*[^=]*="
10     - special: "^[[:space:]]*\\[.*\\]$"
11     - statement: "[=;]"
12     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
13
14     - comment:
15         start: "#"
16         end: "$"
17         rules:
18             - todo: "(TODO|XXX|FIXME):?"
19     - comment:
20         start: ";"
21         end: "$"
22         rules:
23             - todo: "(TODO|XXX|FIXME):?"