93f0691b06
Add syntax highlighting for config files opened in Micro that don't directly call a shell. * Add a syntax definition for `filetype: conf` in `syntax/conf.yaml` with some basic rules (for example, highlighting commented lines); * Define `/etc/*` and `/home/*/.config/*` as conf filetype in `settings.json`, because they contain a lot of config files that don't end in ".conf" or ".cfg".
18 lines
321 B
YAML
18 lines
321 B
YAML
filetype: conf
|
|
|
|
detect:
|
|
filename: "(\\.(conf)$|\\.(cfg)$)"
|
|
|
|
rules:
|
|
- constant.string:
|
|
start: "\""
|
|
end: "\""
|
|
skip: "\\\\."
|
|
rules:
|
|
- constant.specialChar: "\\\\."
|
|
|
|
- comment:
|
|
start: "#"
|
|
end: "$"
|
|
rules:
|
|
- todo: "(TODO|XXX|FIXME):?"
|