mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +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:
@@ -3,7 +3,7 @@ filetype: 'justfile'
|
||||
|
||||
detect:
|
||||
filename: "(^\\.?[Jj]ustfile|\\.just)$"
|
||||
header: "^#!.*/(env +)?[bg]?just --justfile"
|
||||
signature: "^#!.*/(env +)?[bg]?just --justfile"
|
||||
|
||||
rules:
|
||||
- preproc: "\\<(ifeq|ifdef|ifneq|ifndef|else|endif)\\>"
|
||||
|
||||
Reference in New Issue
Block a user