Add missing keywords for Swift
See original GitHub issueInformation
- Language: Swift
- Plugins: ‘none’
Description Some of Swift’s keywords are missing. This issue is here for myself to make a collection over the upcoming week, after which I’m happy to implement this myself. If you’re reading this, feel free to open up a PR adding support for these keywords!
-
associatedtype
-
@autoclosure
-
@discardableResult
-
@dynamicMemberLookup
-
fileprivate
-
@resultBuilder
-
@unknown
Also, not sure if this code is currently highlighted wrong as well:
Available
Current:
Expected:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Add missing pound-sign '#' keywords to parser · Issue #19 · tree ...
Add missing pound-sign '#' keywords to parser #19 ... ps. starting to add highlighting support and test this thing out in justin/language-swift.
Read more >Why do we need the keywords "let" … | Apple Developer Forums
The Swift compiler can always tell when a variable is being defined because there is either an immediate assignment from which type can...
Read more >Use reserved keyword a enum case - swift - Stack Overflow
If you need to give a constant or variable the same name as a reserved Swift keyword, surround the keyword with back ticks...
Read more >What is the “any” keyword in Swift? - Donny Wals
Learn everything you need to know about the any keyword that was added in Swift 5.6 and Xcode 13.3.
Read more >The Basics — The Swift Programming Language (Swift 5.7)
Swift is a new programming language for iOS, macOS, watchOS, and tvOS app ... You declare constants with the let keyword and variables...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Perfect, thanks a lot @RunDevelopment. I’ll make sure to test it out thoroughly on my blog and keep seeking for improvements over time 💪
It does. I pushed the commit adding GitHub-like attribute highlighting before we talked about attributes here.