2017-02-18 23:17:07 +03:00
|
|
|
filetype: yaml
|
|
|
|
|
2017-03-21 22:07:39 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03:00
|
|
|
filename: "\\.ya?ml$"
|
2023-05-05 00:48:42 +03:00
|
|
|
signature: "%YAML"
|
2017-02-18 23:17:07 +03:00
|
|
|
|
|
|
|
rules:
|
|
|
|
- type: "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
2018-11-22 13:00:23 +03:00
|
|
|
- constant: "\\b(YES|yes|Y|y|ON|on|TRUE|True|true|NO|no|N|n|OFF|off|FALSE|False|false)\\b"
|
2017-03-21 22:07:39 +03:00
|
|
|
- statement: "(:[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:space:]]*- )"
|
2017-02-18 23:17:07 +03:00
|
|
|
- identifier: "[[:space:]][\\*&][A-Za-z0-9]+"
|
2017-03-27 00:45:58 +03:00
|
|
|
- type: "[-.\\w]+:"
|
|
|
|
- statement: ":"
|
2017-03-21 22:07:39 +03:00
|
|
|
- special: "(^---|^\\.\\.\\.|^%YAML|^%TAG)"
|
|
|
|
|
|
|
|
- constant.string:
|
2017-08-14 18:28:10 +03:00
|
|
|
start: "(^| )\""
|
2017-03-28 03:53:08 +03:00
|
|
|
end: "\""
|
2017-03-29 16:45:16 +03:00
|
|
|
skip: "\\\\."
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
- constant.string:
|
2017-08-14 18:28:10 +03:00
|
|
|
start: "(^| )'"
|
2017-03-28 03:53:08 +03:00
|
|
|
end: "'"
|
2017-08-14 18:28:10 +03:00
|
|
|
skip: "(\\\\.)|('')"
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
- comment:
|
|
|
|
start: "#"
|
|
|
|
end: "$"
|
2023-07-11 23:49:12 +03:00
|
|
|
rules:
|
|
|
|
- todo: "(TODO|XXX|FIXME):?"
|