diff --git a/etc/skel/.config/micro/settings.json b/etc/skel/.config/micro/settings.json index 7551ae9..cf011de 100644 --- a/etc/skel/.config/micro/settings.json +++ b/etc/skel/.config/micro/settings.json @@ -1,4 +1,10 @@ { + "/etc/*": { + "filetype": "conf" + }, + "/home/*/.config/*": { + "filetype": "conf" + }, "autosu": true, "colorscheme": "geany", "mkparents": true diff --git a/etc/skel/.config/micro/syntax/conf.yaml b/etc/skel/.config/micro/syntax/conf.yaml new file mode 100644 index 0000000..c5e24d8 --- /dev/null +++ b/etc/skel/.config/micro/syntax/conf.yaml @@ -0,0 +1,18 @@ +filetype: conf + +detect: + filename: "(\\.(conf)$|\\.(cfg)$)" + +rules: + - constant.string: + start: "\"" + end: "\"" + skip: "\\\\." + rules: + - constant.specialChar: "\\\\." + + - comment: + start: "#" + end: "$" + rules: + - todo: "(TODO|XXX|FIXME):?"