micro/runtime/syntax/godoc.yaml
Jöran Karl 433879046e Improve file detection with signature check capabilities
This allows more complex detection upon regex rules for a certain amount of
lines.
2023-10-26 20:20:02 +02:00

18 lines
265 B
YAML

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