Skip to content

syntax: identify and highlight @main #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions syntax/swift.vim
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ syntax match swiftPropertyWrapper '@propertyWrapper'
syntax match swiftRequiresStoredPropertyInits '@requires_stored_property_inits'
syntax match swiftTestable '@testable'
syntax match swiftUIApplicationMain '@UIApplicationMain'
syntax match swiftMain '@main'
syntax match swiftUnknown '@unknown'
syntax match swiftUsableFromInline '@usableFromInline'
syntax match swiftWarnUnqualifiedAccess '@warn_unqualified_access'
Expand Down Expand Up @@ -374,6 +375,7 @@ highlight default link swiftPropertyWrapper swiftAttribute
highlight default link swiftRequiresStoredPropertyInits swiftAttribute
highlight default link swiftTestable swiftAttribute
highlight default link swiftUIApplicationMain swiftAttribute
highlight default link swiftMain swiftAttribute
highlight default link swiftUnknown swiftAttribute
highlight default link swiftUsableFromInline swiftAttribute
highlight default link swiftWarnUnqualifiedAccess swiftAttribute
Expand Down