question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add missing keywords for Swift

See original GitHub issue

Information

  • 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: image

Expected: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
AvdLeecommented, Aug 10, 2021

Perfect, thanks a lot @RunDevelopment. I’ll make sure to test it out thoroughly on my blog and keep seeking for improvements over time 💪

1reaction
RunDevelopmentcommented, Aug 9, 2021

Does #3022 also include this?

It does. I pushed the commit adding GitHub-like attribute highlighting before we talked about attributes here.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found