File: vala.yaml

package info (click to toggle)
micro 2.0.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: sh: 265; makefile: 77; xml: 53
file content (26 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
filetype: vala

detect:
    filename: "\\.vala$"

rules:
    - type: "\\b(float|double|bool|u?char|u?int(8|16|32|64)?|u?short|u?long|void|s?size_t|unichar)\\b"
    - identifier.class: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
    - statement: "\\b(for|if|while|do|else|case|default|switch|try|throw|catch)\\b"
    - statement: "\\b(inline|typedef|struct|enum|union|extern|static|const)\\b"
    - statement: "\\b(operator|new|delete|return|null)\\b"
    - statement: "\\b(class|override|private|public|signal|this|weak)\\b"
    - special: "\\b(goto|break|continue)\\b"
    - constant.bool: "\\b(true|false)\\b"
    - constant.number: "\\b([0-9]+)\\b"
    - symbol.operator: "[\\-+/*=<>?:!~%&|]|->"
    - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
    - comment: "(^|[[:space:]])//.*"
    - comment:
        start: "/\\*"
        end: "\\*/"
        rules: []

    - todo: "TODO:?"
    - indent-char.whitespace: "[[:space:]]+$"
    - indent-char: "	+ +| +	+"