12 - symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
14 # Declaration Keywords
15 - statement.declaration: \b(associatedtype|class|deinit|enum|extension|fileprivate|func|import|init)\b
16 - statement.declaration: \b(inout|internal|let|open|operator|private|protocol|public|static|struct|subscript|typealias|var)\b
19 - statement: \b(break|case|continue|default|defer|do|else|fallthrough|for|guard)\b
20 - statement: \b(if|inif|repeat|return|switch|where|while)\b
23 - statement.reserved: \b(associativity|convenience|dynamic|didSet|final|get|infix|indirect|lazy|left|mutating)\b
24 - statement.reserved: \b(none|nonmutating|override|postfix|precedence|prefix|Protocol|required)\b
25 - statement.reserved: \b(right|set|Type|unowned|weak|willSet)\b
27 # Expression and types
28 - type: \b(as|Any|catch|is|rethrows|super|self|throw|throws|try)\b
30 - statement.built_in: \b(abs|advance|alignof|alignofValue|anyGenerator|assert|assertionFailure|bridgeFromObjectiveC)\b
31 - statement.built_in: \b(bridgeFromObjectiveCUnconditional|bridgeToObjectiveC|bridgeToObjectiveCUnconditional|contains)\b
32 - statement.built_in: \b(count|countElements|countLeadingZeros|debugPrint|debugPrintln|distance|dropFirst|dropLast|dump|encodeBitsAsWords)\b
33 - statement.built_in: \b(enumerate|equal|fatalError|filter|find|getBridgedObjectiveCType|getVaList|indices|insertionSort)\b
34 - statement.built_in: \b(isBridgedToObjectiveC|isBridgedVerbatimToObjectiveC|isUniquelyReferenced|isUniquelyReferencedNonObjC)\b
35 - statement.built_in: \b(join|lexicographicalCompare|map|max|maxElement|min|minElement|numericCast|overlaps|partition|posix)\b
36 - statement.built_in: \b(precondition|preconditionFailure|print|println|quickSort|readLine|reduce|reflect)\b
37 - statement.built_in: \b(reinterpretCast!reverse|roundUpToAlignment|sizeof|sizeofValue|sort|split|startsWith|stride)\b
38 - statement.built_in: \b(strideof|strideofValue|swap|toString|transcode|underestimateCount|unsafeAddressOf|unsafeBitCast)\b
39 - statement.built_in: \b(unsafeDowncast|unsafeUnwrap|unsafeReflect|withExtendedLifetime|withObjectAtPlusZero|withUnsafePointer)\b
40 - statement.built_in: \b(withUnsafePointerToObject|withUnsafeMutablePointer|withUnsafeMutablePointers|withUnsafePointer)\b
41 - statement.built_in: \b(withUnsafePointers|withVaList|zip)\b
44 - statement.meta: \@\b(autoclosure|available|convention|exported|IBAction|IBDesignable|IBOutlet|IBInspectable|infix)\b
45 - statement.meta: \@\b(lazy|noreturn|noescape|nonobjc|NSApplicationMain|NSCopying|NSManaged|objc|prefix|postfix)\b
46 - statement.meta: \@\b(required|testable|warn_unused_result|UIApplicationMain)\b
49 - preproc: ^[[:space:]]*#[[:space:]]*(define|else|elseif|endif|if|selector)\b
50 - preproc.DebugIdentifier: \b(__COLUMN__|__FILE__|__FUNCTION__|__LINE__)\b
51 - preproc.DebugIdentifier: ^[[:space:]]*#[[:space:]]*(column|file|function|line)\b
54 - constant: \b(true|false|nil)
55 - constant.number: ([0-9]+)
58 - type.storage: \b((U)?Int(8|16|32|64))\b
59 - type.storage: \b(Int|UInt|String|Bit|Bool|Character|Double|Optional|Float|Range)\b
60 - type.storage: \b(AnyObject)\b
63 - type.collections: \b(Array|Dictionary|Set)\b
66 - type.ctypes: \b(CBool|CChar|CUnsignedChar|CShort|CUnsignedShort|CInt|CUnsignedInt|CLong|CUnsignedLong|CLongLong|CUnsignedLongLong|CWideChar|CChar16|CChar32|CFloat|CDouble)\b
74 - constant.specialChar: (\\0|\\\\|\\t|\\n|\\r|\\"|\\')
75 - constant.interpolation: \\\([[:graph:]]*\)
76 - constant.unicode: \\u\{[[:xdigit:]]+}
79 - comment.shebang: ^(#!).*
82 - comment.doc: (///).*
85 - comment.line: "//.*"
92 - todo: "(TODO|XXX|FIXME):?"
99 - todo: "(TODO|XXX|FIXME):?"
102 - todo: "(TODO|XXX|FIXME):?"