Add mc, godoc syntax files

This commit is contained in:
Serge Voilokov 2019-11-05 22:57:36 -05:00
parent 3a8898dadd
commit 1fc5b316ab
2 changed files with 40 additions and 0 deletions

17
runtime/syntax/godoc.yaml Normal file
View file

@ -0,0 +1,17 @@
# godoc
# example: go doc -all | micro
filetype: godoc
detect:
filename: "\\.godoc$"
header: package.*import
rules:
- preproc: "^[^ ].*"
- comment:
start: "//"
end: "$"
rules:
- todo: "(TODO|XXX|FIXME):?"

23
runtime/syntax/mc.yaml Normal file
View file

@ -0,0 +1,23 @@
# sendmail config files
filetype: mc
detect:
filename: "\\.mc$"
rules:
- statement: "^(divert|VERSIONID|OSTYPE|DOMAIN|FEATURE|define)"
- statement: "^(DAEMON_OPTIONS|MAILER)"
- comment:
start: "#"
end: "$"
rules: []
- comment:
start: "dnl"
end: "$"
rules: []
- constant.string:
start: "`"
end: "'"
rules: []