- constant: "\\b(true|false)\\b"
- statement: "(:[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:space:]]*- )"
- identifier: "[[:space:]][\\*&][A-Za-z0-9]+"
- - type: "([-\\w]+:\\s+)|([-\\w]+:$)"
+ - type: "[-.\\w]+:"
+ - statement: ":"
- special: "(^---|^\\.\\.\\.|^%YAML|^%TAG)"
- constant.string:
start: "\""
- end: "(?<!\\\\)\""
+ end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
- end: "(?<!\\\\)'"
+ end: "'"
rules:
- constant.specialChar: "\\\\."