mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-19 20:01:54 +00:00
Improve YAML highlighting
This commit is contained in:
parent
f7560c3311
commit
fb6d554df6
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@ header "%YAML"
|
||||||
color type "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
color type "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
||||||
color constant "\b(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\b"
|
color constant "\b(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\b"
|
||||||
color constant "\b(true|false)\b"
|
color constant "\b(true|false)\b"
|
||||||
color statement ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
|
color statement "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
|
||||||
color identifier "[[:space:]][\*&][A-Za-z0-9]+"
|
color identifier "[[:space:]][\*&][A-Za-z0-9]+"
|
||||||
color type "([-\w]+:\s+)|([-\w]+:$)"
|
color type "([-\w\.\/]+[[:space:]]*:\s*)|([-\w\.\/]+[[:space:]]*:$)"
|
||||||
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||||
color comment "(^|[[:space:]])#([^{].*)?$"
|
color comment "(^|[[:space:]])#([^{].*)?$"
|
||||||
color special "^---" "^\.\.\." "^%YAML" "^%TAG"
|
color special "^---" "^\.\.\." "^%YAML" "^%TAG"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue