]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/vala.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / vala.yaml
1 filetype: vala
2
3 detect: 
4     filename: "\\.vala$"
5
6 rules:
7     - type: "\\b(float|double|bool|u?char|u?int(8|16|32|64)?|u?short|u?long|void|s?size_t|unichar)\\b"
8     - identifier.class: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
9     - statement: "\\b(for|if|while|do|else|case|default|switch|try|throw|catch)\\b"
10     - statement: "\\b(inline|typedef|struct|enum|union|extern|static|const)\\b"
11     - statement: "\\b(operator|new|delete|return|null)\\b"
12     - statement: "\\b(class|override|private|public|signal|this|weak)\\b"
13     - special: "\\b(goto|break|continue)\\b"
14     - constant.bool: "\\b(true|false)\\b"
15     - constant.number: "\\b([0-9]+)\\b"
16     - symbol.operator: "[\\-+/*=<>?:!~%&|]|->"
17     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
18     - comment: "(^|[[:space:]])//.*"
19     - comment:
20         start: "/\\*"
21         end: "\\*/"
22         rules: []
23
24     - todo: "TODO:?"
25     - indent-char.whitespace: "[[:space:]]+$"
26     - indent-char: "    + +| +  +"