text/x-swift
*.swift
//
/*
*/
@[a-zA-Z_][a-zA-Z0-9_]*
Protocol
self
super
Type
as
is
\#(available|colorLiteral|column|else|elseif|endif|file|fileLiteral|function|if
|imageLiteral|keyPath|line|selector|sourceLocation)
associatedtype
case
class
didSet
enum
extension
func
get
init
let
precedencegroup
protocol
set
struct
subscript
typealias
var
willSet
import
\$[0-9]+
AnyBidirectionalCollection
AnyCollection
AnyHashable
AnyIndex
AnyIterator
AnyRandomAccessCollection
AnySequence
ArithmeticOverflow
Array
ArraySlice
AutoreleasingUnsafeMutablePointer
BidirectionalSlice
Bool
CVaListPointer
Character
ClosedRange
ClosedRangeIndex
ClosedRangeIterator
CollectionOfOne
CommandLine
ContiguousArray
CountableClosedRange
CountableRange
DefaultBidirectionalIndices
DefaultIndices
DefaultRandomAccessIndices
Dictionary
DictionaryIterator
DictionaryLiteral
Double
EmptyCollection
EmptyIterator
EnumeratedIterator
EnumeratedSequence
FlattenBidirectionalCollection
FlattenBidirectionalCollectionIndex
FlattenCollection
FlattenCollectionIndex
FlattenIterator
FlattenSequence
Float
Float80
FloatingPointClassification
FloatingPointRoundingRule
FloatingPointSign
ImplicitlyUnwrappedOptional
IndexingIterator
Int
Int16
Int32
Int64
Int8
IteratorOverOne
IteratorSequence
JoinedIterator
JoinedSequence
LazyBidirectionalCollection
LazyCollection
LazyDropWhileBidirectionalCollection
LazyDropWhileCollection
LazyDropWhileIndex
LazyDropWhileIterator
LazyDropWhileSequence
LazyFilterBidirectionalCollection
LazyFilterCollection
LazyFilterIndex
LazyFilterIterator
LazyFilterSequence
LazyMapBidirectionalCollection
LazyMapCollection
LazyMapIterator
LazyMapRandomAccessCollection
LazyMapSequence
LazyPrefixWhileBidirectionalCollection
LazyPrefixWhileCollection
LazyPrefixWhileIndex
LazyPrefixWhileIterator
LazyPrefixWhileSequence
LazyRandomAccessCollection
LazySequence
ManagedBuffer
ManagedBufferPointer
MemoryLayout
Mirror
MutableBidirectionalSlice
MutableRandomAccessSlice
MutableRangeReplaceableBidirectionalSlice
MutableRangeReplaceableRandomAccessSlice
MutableRangeReplaceableSlice
MutableSlice
Never
ObjectIdentifier
OpaquePointer
Optional
PlaygroundQuickLook
RandomAccessSlice
Range
RangeReplaceableBidirectionalSlice
RangeReplaceableRandomAccessSlice
RangeReplaceableSlice
Repeated
ReversedCollection
ReversedIndex
ReversedRandomAccessCollection
ReversedRandomAccessIndex
Set
SetIterator
Slice
StaticString
StrideThrough
StrideThroughIterator
StrideTo
StrideToIterator
String
UInt
UInt16
UInt32
UInt64
UInt8
UTF16
UTF32
UTF8
UnfoldSequence
UnicodeDecodingResult
UnicodeScalar
Unmanaged
UnsafeBufferPointer
UnsafeBufferPointerIterator
UnsafeMutableBufferPointer
UnsafeMutablePointer
UnsafeMutableRawBufferPointer
UnsafeMutableRawPointer
UnsafePointer
UnsafeRawBufferPointer
UnsafeRawPointer
Zip2Iterator
Zip2Sequence
AbsoluteValuable
AnyObject
Arithmetic
BidirectionalCollection
BinaryFloatingPoint
BinaryInteger
BitwiseOperations
CVarArg
Collection
Comparable
CustomDebugStringConvertible
CustomLeafReflectable
CustomPlaygroundQuickLookable
CustomReflectable
CustomStringConvertible
Equatable
Error
ExpressibleByArrayLiteral
ExpressibleByBooleanLiteral
ExpressibleByDictionaryLiteral
ExpressibleByExtendedGraphemeClusterLiteral
ExpressibleByFloatLiteral
ExpressibleByIntegerLiteral
ExpressibleByNilLiteral
ExpressibleByStringLiteral
ExpressibleByUnicodeScalarLiteral
FixedWidthInteger
FloatingPoint
Hashable
Integer
IntegerArithmetic
IteratorProtocol
LazyCollectionProtocol
LazySequenceProtocol
LosslessStringConvertible
MirrorPath
MutableCollection
OptionSet
RandomAccessCollection
RangeReplaceableCollection
RawRepresentable
Sequence
SetAlgebra
SignedArithmetic
SignedInteger
SignedNumber
Strideable
TextOutputStream
TextOutputStreamable
UnicodeCodec
UnsignedInteger
convenience
dynamic
fileprivate
final
indirect
infix
internal
inout
lazy
mutating
nonmutating
open
optional
override
postfix
prefix
private
public
required
safe
static
rethrows
throws
unowned
unsafe
weak
[0-9][0-9_]*
[0-9a-fA-F][0-9a-fA-F_]*
\b( 0b [01] [01_]* # boolean literal
| 0o [0-7][0-7_]* # octal literal
| 0x \%{hex} ( (\.\%{hex})? [pP][+-]?\%{hex} )? # hex literal
| \%{decimal} (\.\%{decimal})? ([eE][+-]?\%{decimal})? # decimal literal
)
(
[-/=+!*%<>&|^~?:\[\]]
| \b_\b # wildcard underscore
| \.\.\. # range constructor
| \.\.< # range constructor
)
false
true
nil
break
catch
continue
default
defer
do
else
fallthrough
for
guard
if
in
repeat
return
switch
throw
try
where
while
"
"
\\( # leading backslash
[0\\tnr"'] # \n, \r and friends
| u\{[0-9a-fA-F]{1,8}\} # unicode scalar
)
\\\(
\)