After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782838 - provide language definition file for Swift
provide language definition file for Swift
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
git master
Other Linux
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-19 15:24 UTC by Adam Dingle
Modified: 2017-05-20 16:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
implementation (10.66 KB, patch)
2017-05-20 01:29 UTC, Adam Dingle
none Details | Review

Description Adam Dingle 2017-05-19 15:24:17 UTC
The Swift language is becoming popular, and there's a free implementation that runs on Linux:

https://swift.org/download/

It would be great if gtksourceview had a language definition for Swift syntax highlighting.
Comment 1 Adam Dingle 2017-05-20 01:29:18 UTC
Created attachment 352197 [details] [review]
implementation

Here's a language definition for Swift.  I've tried to cover the entire language as described in the Swift language reference at

https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/AboutTheLanguageReference.html
Comment 2 Sébastien Wilmet 2017-05-20 15:28:58 UTC
Thanks, I've pushed commit 4580012581a75ab3055fe9c03b29449a40134004 on the master branch (what will become GtkSourceView 4).
Comment 3 Adam Dingle 2017-05-20 16:05:12 UTC
Great - thanks!