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

View File

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