swift.syntax 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. define keywords yellow
  2. define attributes yellow
  3. define operators brightcyan
  4. define comments red
  5. define strings green
  6. define escapedchars brightgreen
  7. define interpolation brightgreen
  8. define unicode brightgreen
  9. define brackets brightcyan
  10. define punctuation brightcyan
  11. define range brightcyan
  12. define semicolon brightmagenta
  13. define compilerstatements brightred
  14. context default
  15. keyword whole associatedtype keywords
  16. keyword whole class keywords
  17. keyword whole deinit keywords
  18. keyword whole enum keywords
  19. keyword whole extension keywords
  20. keyword whole fileprivate keywords
  21. keyword whole func keywords
  22. keyword whole import keywords
  23. keyword whole init keywords
  24. keyword whole inout keywords
  25. keyword whole internal keywords
  26. keyword whole let keywords
  27. keyword whole open keywords
  28. keyword whole operator keywords
  29. keyword whole private keywords
  30. keyword whole protocol keywords
  31. keyword whole public keywords
  32. keyword whole rethrows keywords
  33. keyword whole static keywords
  34. keyword whole struct keywords
  35. keyword whole subscript keywords
  36. keyword whole typealias keywords
  37. keyword whole var keywords
  38. keyword whole break keywords
  39. keyword whole case keywords
  40. keyword whole continue keywords
  41. keyword whole default keywords
  42. keyword whole defer keywords
  43. keyword whole do keywords
  44. keyword whole else keywords
  45. keyword whole fallthrough keywords
  46. keyword whole for keywords
  47. keyword whole guard keywords
  48. keyword whole if keywords
  49. keyword whole in keywords
  50. keyword whole repeat keywords
  51. keyword whole return keywords
  52. keyword whole switch keywords
  53. keyword whole where keywords
  54. keyword whole while keywords
  55. keyword whole as keywords
  56. keyword whole catch keywords
  57. keyword whole false keywords
  58. keyword whole is keywords
  59. keyword whole nil keywords
  60. keyword whole self keywords
  61. keyword whole Self keywords
  62. keyword whole super keywords
  63. keyword whole throws keywords
  64. keyword whole throw keywords
  65. keyword whole true keywords
  66. keyword whole try keywords
  67. keyword whole associativity keywords
  68. keyword whole convenience keywords
  69. keyword whole didSet keywords
  70. keyword whole dynamic keywords
  71. keyword whole final keywords
  72. keyword whole get keywords
  73. keyword whole indirect keywords
  74. keyword whole infix keywords
  75. keyword whole lazy keywords
  76. keyword whole left keywords
  77. keyword whole mutating keywords
  78. keyword whole none keywords
  79. keyword whole nonmutating keywords
  80. keyword whole optional keywords
  81. keyword whole override keywords
  82. keyword whole postfix keywords
  83. keyword whole precedence keywords
  84. keyword whole prefix keywords
  85. keyword whole Protocol keywords
  86. keyword whole required keywords
  87. keyword whole right keywords
  88. keyword whole set keywords
  89. keyword whole Type keywords
  90. keyword whole unowned keywords
  91. keyword whole weak keywords
  92. keyword whole willSet keywords
  93. keyword whole Any keywords
  94. keyword whole Bool keywords
  95. keyword whole Double keywords
  96. keyword whole Float keywords
  97. keyword whole Character keywords
  98. keyword whole Int keywords
  99. keyword whole Int16 keywords
  100. keyword whole Int32 keywords
  101. keyword whole Int64 keywords
  102. keyword whole Int8 keywords
  103. keyword whole String keywords
  104. keyword whole UInt keywords
  105. keyword whole UInt16 keywords
  106. keyword whole UInt32 keywords
  107. keyword whole UInt64 keywords
  108. keyword whole UInt8 keywords
  109. keyword whole assert keywords
  110. keyword whole precondition keywords
  111. keyword // comments
  112. keyword /\* comments
  113. keyword *\*/ comments
  114. keyword > operators
  115. keyword < operators
  116. keyword \+ operators
  117. keyword - operators
  118. keyword \* operators
  119. keyword / operators
  120. keyword % operators
  121. keyword = operators
  122. keyword != operators
  123. keyword == operators
  124. keyword | operators
  125. keyword & operators
  126. keyword ^ operators
  127. keyword ~ operators
  128. keyword ! operators
  129. keyword whole _ operators
  130. keyword { brackets
  131. keyword } brackets
  132. keyword ( brackets
  133. keyword ) brackets
  134. keyword [ brackets
  135. keyword ] brackets
  136. keyword . punctuation
  137. keyword , punctuation
  138. keyword : punctuation
  139. keyword ? punctuation
  140. keyword ... range
  141. keyword ..< range
  142. keyword ; semicolon
  143. keyword `*` base
  144. keyword whole @available attributes
  145. keyword whole @escaping attributes
  146. keyword whole @unavailable attributes
  147. keyword whole @introduced attributes
  148. keyword whole @deprecated attributes
  149. keyword whole @obsolete attributes
  150. keyword whole @message attributes
  151. keyword whole @main attributes
  152. keyword whole @renamed attributes
  153. keyword whole @discardableResult attributes
  154. keyword whole @dynamicCallable attributes
  155. keyword whole @dynamicMemberLookup attributes
  156. keyword whole @frozen attributes
  157. keyword whole @GKInspectable attributes
  158. keyword whole @inlinable attributes
  159. keyword whole @nonobjc attributes
  160. keyword whole @NSApplicationMain attributes
  161. keyword whole @NSCopying attributes
  162. keyword whole @objc attributes
  163. keyword whole @NSManaged attributes
  164. keyword whole @objcMembers attributes
  165. keyword whole @propertyWrapper attributes
  166. keyword whole @requires_stored_property_inits attributes
  167. keyword whole @testable attributes
  168. keyword whole @UIApplicationMain attributes
  169. keyword whole @usableFromInline attributes
  170. keyword whole @warn_unqualified_access attributes
  171. keyword whole @autoclosure attributes
  172. keyword whole @convention attributes
  173. keyword whole @escaping attributes
  174. keyword whole @unknown attributes
  175. context exclusive /\* \*/ comments
  176. spellcheck
  177. context exclusive // \n comments
  178. spellcheck
  179. context linestart # \n compilerstatements
  180. context #""" """# string
  181. spellcheck
  182. keyword \\(*) interpolation
  183. keyword \\\{0tnr"'\\\} escapedchars
  184. keyword \\u{*} unicode
  185. context """ """ string
  186. spellcheck
  187. keyword \\(*) interpolation
  188. keyword \\\{0tnr"'\\\} escapedchars
  189. keyword \\u{*} unicode
  190. context #" "# string
  191. spellcheck
  192. keyword \\(*) interpolation
  193. keyword \\\{0tnr"'\\\} escapedchars
  194. keyword \\u{*} unicode
  195. context " " string
  196. spellcheck
  197. keyword \\(*) interpolation
  198. keyword \\\{0tnr"'\\\} escapedchars
  199. keyword \\u{*} unicode