1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-21 16:54:23 +01:00

YAML: color keys: normal and values as constants

This commit is contained in:
cn 2011-10-23 00:36:45 +02:00
parent d88c044fb9
commit b811498057

View File

@ -13,7 +13,6 @@
=Reference yellow =Reference yellow
=LocalType fg_310 # brown =LocalType fg_310 # brown
=BlockDelim bold blue =BlockDelim bold blue
=Key fg_310
=BadTab inverse red =BadTab inverse red
@ -22,7 +21,7 @@
"\t" bad_tab recolor=-1 "\t" bad_tab recolor=-1
" " line_start " " line_start
:idle Idle :idle Constant
* idle * idle
"\n" line_start "\n" line_start
"%" directive recolor=-1 "%" directive recolor=-1
@ -30,16 +29,16 @@
"'" string_sq_1 recolor=-1 "'" string_sq_1 recolor=-1
"\"" string_dq_1 recolor=-1 "\"" string_dq_1 recolor=-1
"{[]}" brace recolor=-1 "{[]}" brace recolor=-1
"." maybe_block_end1
"*&" maybe_reference "*&" maybe_reference
"!" maybe_typecast "!" maybe_typecast
:maybe_key Idle :maybe_key Idle
* maybe_key1 mark * maybe_key1 mark
"\n%#{[]}." idle noeat "\n%#'\"{[]}*&!" idle noeat
"-" maybe_block1 mark "-" maybe_block1 mark
"." maybe_block_end1
:maybe_key1 Idle :maybe_key1 Constant
* idle noeat * idle noeat
":" key ":" key
" a-zA-Z0-9_-" maybe_key1 " a-zA-Z0-9_-" maybe_key1
@ -48,7 +47,7 @@
:key Idle :key Idle
* key_end noeat recolormark * key_end noeat recolormark
:key_end Key :key_end Idle
* idle noeat * idle noeat
# mark bad tabs until the first non-whitespace # mark bad tabs until the first non-whitespace
@ -90,29 +89,29 @@
* string_dq * string_dq
"\n" string_dq recolor=-2 "\n" string_dq recolor=-2
:maybe_block1 Idle :maybe_block1 Constant
* maybe_key1 noeat * maybe_key1 noeat
"-" maybe_block2 "-" maybe_block2
:maybe_block2 Idle :maybe_block2 Constant
* maybe_key1 noeat * maybe_key1 noeat
"-" block recolor=-3 "-" block recolor=-3
:block BlockDelim :block BlockDelim
* idle noeat * idle noeat
:maybe_block_end1 Idle :maybe_block_end1 Constant
* idle noeat * idle noeat
"." maybe_block_end2 "." maybe_block_end2
:maybe_block_end2 Idle :maybe_block_end2 Constant
* idle noeat * idle noeat
"." block_end recolor=-3 "." block_end recolor=-3
:block_end BlockDelim :block_end BlockDelim
* idle noeat * idle noeat
:maybe_reference Idle :maybe_reference Constant
* idle * idle
"a-zA-Z_" reference recolor=-2 "a-zA-Z_" reference recolor=-2
@ -120,7 +119,7 @@
* idle noeat * idle noeat
"a-zA-Z0-9_" reference "a-zA-Z0-9_" reference
:maybe_typecast Idle :maybe_typecast Constant
* idle noeat * idle noeat
"a-zA-Z_" local_type recolor=-1 "a-zA-Z_" local_type recolor=-1
"!" builtin_type "!" builtin_type