mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-02 22:30:22 +00:00
Add Swift shebang to syntax (#3451)
The Swift compiler can be run in "interpreter" mode, so it can run Swift "scripts" if they have a proper shebang and no file extension.
This commit is contained in:
parent
2308bc5555
commit
5428b3fda2
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ filetype: swift
|
|||
|
||||
detect:
|
||||
filename: "\\.swift$"
|
||||
header: "^#!.*bin/(env +)?swift( |$)"
|
||||
|
||||
rules:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue