]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/yaml.yaml
Add converted syntax files
[micro.git] / runtime / syntax / yaml.yaml
1 filetype: yaml
2
3 detect: 
4     filename: "\\.ya?ml$"
5     header: "%YAML"
6
7 rules:
8     - type: "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
9     - constant.bool.true: "\\b(YES|yes|Y|y|ON|on)\\b"
10     - constant.bool.false: "\\b(NO|no|N|n|OFF|off)\\b"
11     - constant.bool.true: "\\b(true)\\b"
12     - constant.bool.false: "\\b(false)\\b"
13     - statement: ":[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:space:]]*- "
14     - identifier: "[[:space:]][\\*&][A-Za-z0-9]+"
15     - type: "([-\\w\\.\\/]+[[:space:]]*:\\s+)|([-\\w\\.\\/]+[[:space:]]*:$)"
16     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
17     - comment: "(^|[[:space:]])#([^{].*)?$"
18     - special: "^---|^\\.\\.\\.|^%YAML|^%TAG"
19     - indent-char.whitespace: "  $"