This commit is contained in:
Leandro Afonso
2025-09-27 18:39:59 +01:00
commit f0cdef9259
1220 changed files with 77975 additions and 0 deletions

26
micro/syntax/vala.yaml Normal file
View File

@@ -0,0 +1,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: " + +| + +"