mirror of
https://github.com/zyedidia/micro
synced 2024-09-28 20:24:39 +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
|
@ -2,6 +2,7 @@ filetype: swift
|
|||
|
||||
detect:
|
||||
filename: "\\.swift$"
|
||||
header: "^#!.*bin/(env +)?swift( |$)"
|
||||
|
||||
rules:
|
||||
|
||||
|
|
Loading…
Reference in a new issue