filetype: swift detect: filename: "\\.swift$" rules: - symbol.operator: "[.:;,+*|=!?\\%]|<|>|/|-|&" - statement: "(class|import|let|var|struct|enum|func|if|else|switch|case|default|for|in|internal|external|unowned|private|public|throws)\\ " - statement: "(prefix|postfix|operator|extension|lazy|get|set|self|willSet|didSet|override|super|convenience|weak|strong|mutating|return|guard)\\ " - preproc: "(print)" - preproc: "(init)" - constant.number: "([0-9]+)" - type: "\\ ((U)?Int(8|16|32|64))" - constant.bool: "(true|false|nil)" - type: "\\ (Double|String|Float|Boolean|Dictionary|Array|Int)" - type: "\\ (AnyObject)" - constant.string: "\"[^\"]*\"" - comment: "//.*" - comment: "///.*" - comment: start: "/\\*\\*" end: "\\*/" rules: [] - comment: "[/**]"