mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Improve file detection with signature check capabilities
This allows more complex detection upon regex rules for a certain amount of lines.
This commit is contained in:
@@ -2,7 +2,7 @@ filetype: nginx
|
||||
|
||||
detect:
|
||||
filename: "nginx.*\\.conf$|\\.nginx$"
|
||||
header: "^(server|upstream)[a-z ]*\\{$"
|
||||
signature: "^(server|upstream)[a-z ]*\\{$"
|
||||
|
||||
rules:
|
||||
- preproc: "\\b(events|server|http|location|upstream)[[:space:]]*\\{"
|
||||
|
||||
Reference in New Issue
Block a user