1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-22 02:54:23 +01:00
joe-syntax/yaml.jsf

145 lines
2.2 KiB
Plaintext
Raw Normal View History

# JOE syntax highlight file for YAML
=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
=LocalType fg_310 # brown
=BlockDelim bold blue
=BadTab inverse red
:line_start Idle
* maybe_key noeat
"\t" bad_tab recolor=-1
" " line_start
:idle Constant
* idle
"\n" line_start
"%" directive recolor=-1
"#" line_comment recolor=-1
2011-08-01 11:21:59 +02:00
"'" string_sq_1 recolor=-1
"\"" string_dq_1 recolor=-1
"{[]}" brace recolor=-1
"." maybe_block_end1
2011-08-01 11:21:59 +02:00
"*&" maybe_reference
2011-08-02 16:45:04 +02:00
"!" maybe_typecast
:maybe_key Idle
* maybe_key1 mark
"\n%#'\"{[]}*&!" idle noeat
"-" maybe_block1 mark
:maybe_key1 Constant
* idle noeat
":" key
" a-zA-Z0-9_-" maybe_key1
# necessary to include the :
:key Idle
* key_end noeat recolormark
:key_end Idle
* idle noeat
# mark bad tabs until the first non-whitespace
:bad_tab BadTab
* line_start noeat
:line_comment Comment
* line_comment
"\n" line_start
:brace Brace
2011-08-01 11:21:59 +02:00
* idle noeat
:directive Directive
* directive
"\n" line_start
: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
:maybe_block1 Constant
* maybe_key1 noeat
"-" maybe_block2
:maybe_block2 Constant
* maybe_key1 noeat
2011-08-01 11:21:59 +02:00
"-" block recolor=-3
:block BlockDelim
2011-08-01 11:21:59 +02:00
* idle noeat
:maybe_block_end1 Constant
2011-08-01 11:21:59 +02:00
* idle noeat
"." maybe_block_end2
:maybe_block_end2 Constant
2011-08-01 11:21:59 +02:00
* idle noeat
"." block_end recolor=-3
:block_end BlockDelim
2011-08-01 11:21:59 +02:00
* idle noeat
:maybe_reference Constant
* idle
"a-zA-Z_" reference recolor=-2
:reference Reference
2011-08-01 11:21:59 +02:00
* idle noeat
"a-zA-Z0-9_" reference
: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-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-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
done
2011-08-02 17:23:09 +02:00
"a-zA-Z_" builtin_type2
2011-08-02 12:29:30 +02:00
:type Type
2011-08-01 11:21:59 +02:00
* idle noeat
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