2011-08-01 01:53:52 +02:00
|
|
|
# JOE syntax highlight file for YAML
|
2017-02-04 23:34:44 +01:00
|
|
|
# by Christian Nicolai (http://mycrobase.de)
|
2011-08-01 00:09:15 +02:00
|
|
|
|
|
|
|
=Idle
|
2011-08-02 12:29:30 +02:00
|
|
|
=Comment green
|
|
|
|
=Constant cyan
|
|
|
|
=Escape bold cyan
|
|
|
|
=Type bold
|
|
|
|
=Keyword bold
|
|
|
|
=Bad bold red
|
|
|
|
=Brace magenta
|
|
|
|
|
|
|
|
=Directive red
|
|
|
|
=Reference yellow
|
2017-02-04 23:40:52 +01:00
|
|
|
=LocalType fg_310 # brown
|
2011-08-02 12:29:30 +02:00
|
|
|
=BlockDelim bold blue
|
2011-08-01 01:53:52 +02:00
|
|
|
|
2011-08-06 12:44:51 +02:00
|
|
|
=BadTab inverse red
|
|
|
|
|
|
|
|
:line_start Idle
|
2011-10-22 22:36:28 +02:00
|
|
|
* maybe_key noeat
|
2011-08-06 12:44:51 +02:00
|
|
|
"\t" bad_tab recolor=-1
|
2017-02-04 23:34:44 +01:00
|
|
|
"#" line_comment recolor=-1
|
2011-08-06 12:44:51 +02:00
|
|
|
" " line_start
|
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:idle Constant
|
2017-05-13 10:07:47 +02:00
|
|
|
* plain_scalar noeat
|
2011-08-06 12:44:51 +02:00
|
|
|
"\n" line_start
|
2011-08-01 01:53:52 +02:00
|
|
|
"%" directive recolor=-1
|
2017-05-13 10:07:47 +02:00
|
|
|
" " maybe_idle_comment
|
2011-08-01 11:21:59 +02:00
|
|
|
"'" string_sq_1 recolor=-1
|
|
|
|
"\"" string_dq_1 recolor=-1
|
|
|
|
"{[]}" brace recolor=-1
|
2011-10-23 00:36:45 +02:00
|
|
|
"." maybe_block_end1
|
2011-08-01 11:21:59 +02:00
|
|
|
"*&" maybe_reference
|
2011-08-02 16:45:04 +02:00
|
|
|
"!" maybe_typecast
|
2011-08-01 00:09:15 +02:00
|
|
|
|
2017-05-13 10:07:47 +02:00
|
|
|
:plain_scalar Constant
|
|
|
|
* plain_scalar
|
|
|
|
"\t" bad_tab recolor=-1
|
|
|
|
"\n" line_start noeat
|
|
|
|
" " maybe_plain_scalar_comment
|
|
|
|
|
2011-10-22 22:36:28 +02:00
|
|
|
:maybe_key Idle
|
2011-11-10 21:07:51 +01:00
|
|
|
* maybe_key1 recolor=-1 mark
|
2017-05-13 10:07:47 +02:00
|
|
|
"\n" line_start
|
|
|
|
"%#'\"{[]}*&!" idle noeat
|
2011-10-22 22:36:28 +02:00
|
|
|
"-" maybe_block1 mark
|
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:maybe_key1 Constant
|
2011-10-22 22:36:28 +02:00
|
|
|
* idle noeat
|
|
|
|
":" key
|
2017-08-04 21:35:32 +02:00
|
|
|
"a-zA-Z0-9_-" maybe_key1
|
|
|
|
" " maybe_key1_comment
|
2011-10-22 22:36:28 +02:00
|
|
|
|
|
|
|
# necessary to include the :
|
|
|
|
:key Idle
|
|
|
|
* key_end noeat recolormark
|
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:key_end Idle
|
2011-10-22 22:36:28 +02:00
|
|
|
* idle noeat
|
|
|
|
|
2011-08-06 12:44:51 +02:00
|
|
|
# mark bad tabs until the first non-whitespace
|
|
|
|
:bad_tab BadTab
|
|
|
|
* line_start noeat
|
|
|
|
|
2017-05-13 10:07:47 +02:00
|
|
|
:maybe_plain_scalar_comment Comment
|
|
|
|
* plain_scalar noeat
|
|
|
|
"#" line_comment
|
|
|
|
|
2017-08-04 21:35:32 +02:00
|
|
|
:maybe_key1_comment Comment
|
|
|
|
* maybe_key1 noeat
|
|
|
|
"#" line_comment
|
|
|
|
|
2017-05-13 10:07:47 +02:00
|
|
|
:maybe_idle_comment Comment
|
2017-02-04 23:40:52 +01:00
|
|
|
* idle noeat
|
|
|
|
"#" line_comment
|
|
|
|
|
2011-08-01 00:09:15 +02:00
|
|
|
:line_comment Comment
|
|
|
|
* line_comment
|
2011-08-06 12:44:51 +02:00
|
|
|
"\n" line_start
|
2011-08-01 01:53:52 +02:00
|
|
|
|
|
|
|
:brace Brace
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
|
|
|
|
:directive Directive
|
|
|
|
* directive
|
2011-08-06 12:44:51 +02:00
|
|
|
"\n" line_start
|
2011-08-01 01:53:52 +02:00
|
|
|
|
|
|
|
:string_sq_1 Constant
|
|
|
|
* string_sq noeat
|
|
|
|
|
|
|
|
:string_sq Constant
|
|
|
|
* string_sq
|
|
|
|
"\'" idle
|
|
|
|
"\\" string_sq_esc recolor=-1
|
|
|
|
|
|
|
|
:string_sq_esc Escape
|
|
|
|
* string_sq
|
|
|
|
"\n" string_sq recolor=-2
|
|
|
|
|
|
|
|
:string_dq_1 Constant
|
|
|
|
* string_dq noeat
|
|
|
|
|
|
|
|
:string_dq Constant
|
|
|
|
* string_dq
|
|
|
|
"\"" idle
|
|
|
|
"\\" string_dq_esc recolor=-1
|
|
|
|
|
|
|
|
:string_dq_esc Escape
|
|
|
|
* string_dq
|
|
|
|
"\n" string_dq recolor=-2
|
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:maybe_block1 Constant
|
2011-10-22 22:36:28 +02:00
|
|
|
* maybe_key1 noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
"-" maybe_block2
|
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:maybe_block2 Constant
|
2011-10-22 22:36:28 +02:00
|
|
|
* maybe_key1 noeat
|
2011-08-01 11:21:59 +02:00
|
|
|
"-" block recolor=-3
|
2011-08-01 01:53:52 +02:00
|
|
|
|
|
|
|
:block BlockDelim
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:maybe_block_end1 Constant
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
"." maybe_block_end2
|
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:maybe_block_end2 Constant
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
"." block_end recolor=-3
|
|
|
|
|
|
|
|
:block_end BlockDelim
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:maybe_reference Constant
|
2011-08-01 01:53:52 +02:00
|
|
|
* idle
|
|
|
|
"a-zA-Z_" reference recolor=-2
|
|
|
|
|
|
|
|
:reference Reference
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
"a-zA-Z0-9_" reference
|
|
|
|
|
2011-10-23 00:36:45 +02:00
|
|
|
:maybe_typecast Constant
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-02 12:29:30 +02:00
|
|
|
"a-zA-Z_" local_type recolor=-1
|
2011-08-02 17:23:09 +02:00
|
|
|
"!" builtin_type
|
2011-08-01 01:53:52 +02:00
|
|
|
|
2011-08-02 17:23:09 +02:00
|
|
|
:builtin_type Idle
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-02 17:23:09 +02:00
|
|
|
"a-zA-Z" builtin_type2 buffer
|
2011-08-01 01:53:52 +02:00
|
|
|
|
2011-08-02 17:23:09 +02:00
|
|
|
:builtin_type2 Idle
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat strings
|
2011-08-02 12:29:30 +02:00
|
|
|
"str" type
|
|
|
|
"float" type
|
|
|
|
"binary" type
|
2011-08-01 01:53:52 +02:00
|
|
|
done
|
2011-08-02 17:23:09 +02:00
|
|
|
"a-zA-Z_" builtin_type2
|
2011-08-01 01:53:52 +02:00
|
|
|
|
2011-08-02 12:29:30 +02:00
|
|
|
:type Type
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-01 01:53:52 +02:00
|
|
|
|
2011-08-02 12:29:30 +02:00
|
|
|
:local_type LocalType
|
2011-08-01 11:21:59 +02:00
|
|
|
* idle noeat
|
2011-08-02 12:29:30 +02:00
|
|
|
"a-zA-Z_" local_type
|