Skip to content
This repository has been archived by the owner on Dec 24, 2018. It is now read-only.

Commit

Permalink
Add syntax highlight for Swift code between backticks
Browse files Browse the repository at this point in the history
Swift is a general-purpose, multi-paradigm, compiled programming
language developed by Apple Inc. for iOS, macOS, watchOS, tvOS, and
Linux. Swift is designed to work with Apple's Cocoa and Cocoa Touch
frameworks and the large body of extant Objective-C (ObjC) code written
for Apple products. Swift is intended to be more resilient to erroneous
code ("safer") than Objective-C, and more concise. It is built with
the LLVM compiler framework included in Xcode 6 and later and, on
platforms other than Linux, uses the Objective-C runtime library,
which allows C, Objective-C, C++ and Swift code to run within one
program.
  • Loading branch information
cixtor authored and sekogan committed Oct 9, 2016
1 parent 5cf0fb2 commit b8ff2b2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions MarkdownLight.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,34 @@
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(\s*```)\s*(swift)\s*$</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.fenced.markdown</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.language.fenced.markdown</string>
</dict>
</dict>
<key>end</key>
<string>(\1)\n</string>
<key>name</key>
<string>markup.raw.block.markdown markup.raw.block.fenced.markdown</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.swift</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(\s*```)\s*([^\s`]*)\s*$</string>
Expand Down

0 comments on commit b8ff2b2

Please sign in to comment.