mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-30 02:54:42 +00:00
Allow more ways to write booleans in YAML
See http://yaml.org/type/bool.html and http://yaml.org/spec/1.2/spec.html#id2805071
This commit is contained in:
parent
e071a4f8e2
commit
8bda0a6b45
1 changed files with 1 additions and 2 deletions
|
|
@ -6,8 +6,7 @@ detect:
|
|||
|
||||
rules:
|
||||
- type: "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
||||
- constant: "\\b(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\\b"
|
||||
- constant: "\\b(true|false)\\b"
|
||||
- constant: "\\b(YES|yes|Y|y|ON|on|TRUE|True|true|NO|no|N|n|OFF|off|FALSE|False|false)\\b"
|
||||
- statement: "(:[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:space:]]*- )"
|
||||
- identifier: "[[:space:]][\\*&][A-Za-z0-9]+"
|
||||
- type: "[-.\\w]+:"
|
||||
|
|
|
|||
Loading…
Reference in a new issue