mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-07 05:10:23 +09: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:
@@ -2,6 +2,7 @@ filetype: swift
|
||||
|
||||
detect:
|
||||
filename: "\\.swift$"
|
||||
header: "^#!.*bin/(env +)?swift( |$)"
|
||||
|
||||
rules:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user