Skip to content

Add Swift shebang to syntax#3451

Merged
JoeKar merged 1 commit intomicro-editor:masterfrom
frkd-dev:master
Sep 5, 2024
Merged

Add Swift shebang to syntax#3451
JoeKar merged 1 commit intomicro-editor:masterfrom
frkd-dev:master

Conversation

@frkd-dev
Copy link
Contributor

@frkd-dev frkd-dev commented Sep 4, 2024

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 PR adds a shebang detection to the swift.yaml syntax file so Micro can highlight Swift scripts as well.

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.
@frkd-dev
Copy link
Contributor Author

frkd-dev commented Sep 4, 2024

The addition of shebang is discussed in #3450.

@JoeKar JoeKar merged commit 5428b3f into micro-editor:master Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants