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:
Oleksandr 2024-09-05 18:41:39 +02:00 committed by GitHub
parent 2308bc5555
commit 5428b3fda2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,7 @@ filetype: swift
detect:
filename: "\\.swift$"
header: "^#!.*bin/(env +)?swift( |$)"
rules: