2017-02-18 23:17:07 +03:00
|
|
|
filetype: swift
|
|
|
|
|
2017-03-21 21:55:22 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03:00
|
|
|
filename: "\\.swift$"
|
|
|
|
|
|
|
|
rules:
|
2017-03-21 21:55:22 +03:00
|
|
|
- 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)"
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant.number: "([0-9]+)"
|
|
|
|
- type: "\\ ((U)?Int(8|16|32|64))"
|
2017-03-21 21:55:22 +03:00
|
|
|
- constant.bool: "(true|false|nil)"
|
2017-02-18 23:17:07 +03:00
|
|
|
- type: "\\ (Double|String|Float|Boolean|Dictionary|Array|Int)"
|
|
|
|
- type: "\\ (AnyObject)"
|
2017-03-21 21:55:22 +03:00
|
|
|
- constant.string: "\"[^\"]*\""
|
|
|
|
- comment: "//.*"
|
|
|
|
- comment: "///.*"
|
2017-02-18 23:17:07 +03:00
|
|
|
- comment:
|
|
|
|
start: "/\\*\\*"
|
|
|
|
end: "\\*/"
|
2017-03-21 21:55:22 +03:00
|
|
|
rules: []
|
|
|
|
|
|
|
|
- comment: "[/**]"
|