]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/swift.yaml
Add converted syntax files
[micro.git] / runtime / syntax / swift.yaml
1 filetype: swift
2
3 detect: 
4     filename: "\\.swift$"
5
6 rules:
7     - symbol.operator: "[.:;,+*|=!?\\%]|<|>|/|-|&"
8     - statement: "(class|import|let|var|struct|enum|func|if|else|switch|case|default|for|in|internal|external|unowned|private|public|throws)\\ "
9     - statement: "(prefix|postfix|operator|extension|lazy|get|set|self|willSet|didSet|override|super|convenience|weak|strong|mutating|return|guard)\\ "
10     - preproc: "(print)"
11     - preproc: "(init)"
12     - constant.number: "([0-9]+)"
13     - type: "\\ ((U)?Int(8|16|32|64))"
14     - constant.bool: "(true|false|nil)"
15     - type: "\\ (Double|String|Float|Boolean|Dictionary|Array|Int)"
16     - type: "\\ (AnyObject)"
17     - constant.string: "\"[^\"]*\""
18     - comment: "//.*"
19     - comment: "///.*"
20     - comment:
21         start: "/\\*\\*"
22         end: "\\*/"
23         rules: []
24
25     - comment: "[/**]"