]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/pony.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / pony.yaml
1 filetype: pony
2
3 detect: 
4     filename: "\\.pony$"
5
6 rules:
7     - statement: "\\b(type|interface|trait|primitive|class|struct|actor)\\b"
8     - statement: "\\b(compiler_intrinsic)\\b"
9     - statement: "\\b(use)\\b"
10     - statement: "\\b(var|let|embed)\\b"
11     - statement: "\\b(new|be|fun)\\b"
12     - statement: "\\b(iso|trn|ref|val|box|tag|consume)\\b"
13     - statement: "\\b(break|continue|return|error)\\b"
14     - statement: "\\b(if|then|elseif|else|end|match|where|try|with|as|recover|object|lambda|as|digestof|ifdef)\\b"
15     - statement: "\\b(while|do|repeat|until|for|in)\\b"
16     - statement: "(\\?|=>)"
17     - statement: "(\\||\\&|\\,|\\^)"
18     - symbol.operator: "(\\-|\\+|\\*|/|\\!|%|<<|>>)"
19     - symbol.operator: "(==|!=|<=|>=|<|>)"
20     - statement: "\\b(is|isnt|not|and|or|xor)\\b"
21     - type: "\\b(_*[A-Z][_a-zA-Z0-9\\']*)\\b"
22     - constant: "\\b(this)\\b"
23     - constant.bool: "\\b(true|false)\\b"
24     - constant.number: "\\b((0b[0-1_]*)|(0o[0-7_]*)|(0x[0-9a-fA-F_]*)|([0-9_]+(\\.[0-9_]+)?((e|E)(\\\\+|-)?[0-9_]+)?))\\b"
25     - constant.string: "\"(\\\\.|[^\"])*\""
26     - comment:
27         start: "\"\"\"[^\"]*"
28         end: "\"\"\""
29         rules: []
30
31     - comment: "(^|[[:space:]])//.*"
32     - comment:
33         start: "/\\*"
34         end: "\\*/"
35         rules: []
36
37     - todo: "TODO:?"