dotfiles

My dotfiles.
git clone git://git.ryanmj.xyz/dotfiles.git
Log | Files | Refs | LICENSE

yaml.jsf (2347B)


      1 # JOE syntax highlight file for YAML
      2 # by Christian Nicolai (http://mycrobase.de)
      3 
      4 =Idle
      5 =Comment	green
      6 =Constant	cyan
      7 =Escape		bold cyan
      8 =Type		bold
      9 =Keyword	bold
     10 =Bad		bold red
     11 =Brace		magenta
     12 
     13 =Directive	red
     14 =Reference	yellow
     15 =LocalType	blue
     16 =BlockDelim	bold blue
     17 
     18 =BadTab		inverse red
     19 
     20 :line_start Idle
     21 	*		maybe_key	noeat
     22 	"\t"		bad_tab		recolor=-1
     23 	" "		line_start
     24 
     25 :idle Constant
     26 	*		idle
     27 	"\n"		line_start
     28 	"%"		directive	recolor=-1
     29 	"#"		line_comment	recolor=-1
     30 	"'"		string_sq_1	recolor=-1
     31 	"\""		string_dq_1	recolor=-1
     32 	"{[]}"		brace		recolor=-1
     33 	"."		maybe_block_end1
     34 	"*&"		maybe_reference
     35 	"!"		maybe_typecast
     36 
     37 :maybe_key Idle
     38 	*		maybe_key1	recolor=-1 mark
     39 	"\n%#'\"{[]}*&!"	idle		noeat
     40 	"-"		maybe_block1	mark
     41 
     42 :maybe_key1 Constant
     43 	*		idle		noeat
     44 	":"		key
     45 	" a-zA-Z0-9_-"	maybe_key1
     46 
     47 # necessary to include the :
     48 :key Idle
     49 	*		key_end		noeat recolormark
     50 
     51 :key_end Idle
     52 	*		idle		noeat
     53 
     54 # mark bad tabs until the first non-whitespace
     55 :bad_tab BadTab
     56 	*		line_start	noeat
     57 
     58 :line_comment Comment
     59 	*		line_comment
     60 	"\n"		line_start
     61 
     62 :brace Brace
     63 	*		idle		noeat
     64 
     65 :directive Directive
     66 	*		directive
     67 	"\n"		line_start
     68 
     69 :string_sq_1 Constant
     70 	*		string_sq	noeat
     71 
     72 :string_sq Constant
     73 	*		string_sq
     74 	"\'"		idle
     75 	"\\"		string_sq_esc	recolor=-1
     76 
     77 :string_sq_esc Escape
     78 	*		string_sq
     79 	"\n"		string_sq	recolor=-2
     80 
     81 :string_dq_1 Constant
     82 	*		string_dq	noeat
     83 
     84 :string_dq Constant
     85 	*		string_dq
     86 	"\""		idle
     87 	"\\"		string_dq_esc	recolor=-1
     88 
     89 :string_dq_esc Escape
     90 	*		string_dq
     91 	"\n"		string_dq	recolor=-2
     92 
     93 :maybe_block1 Constant
     94 	*		maybe_key1	noeat
     95 	"-"		maybe_block2
     96 
     97 :maybe_block2 Constant
     98 	*		maybe_key1	noeat
     99 	"-"		block		recolor=-3
    100 
    101 :block BlockDelim
    102 	*		idle		noeat
    103 
    104 :maybe_block_end1 Constant
    105 	*		idle		noeat
    106 	"."		maybe_block_end2
    107 
    108 :maybe_block_end2 Constant
    109 	*		idle		noeat
    110 	"."		block_end	recolor=-3
    111 
    112 :block_end BlockDelim
    113 	*		idle		noeat
    114 
    115 :maybe_reference Constant
    116 	*		idle
    117 	"a-zA-Z_"	reference	recolor=-2
    118 
    119 :reference Reference
    120 	*		idle		noeat
    121 	"a-zA-Z0-9_"	reference
    122 
    123 :maybe_typecast Constant
    124 	*		idle		noeat
    125 	"a-zA-Z_"	local_type	recolor=-1
    126 	"!"		builtin_type
    127 
    128 :builtin_type Idle
    129 	*		idle		noeat
    130 	"a-zA-Z"	builtin_type2	buffer
    131 
    132 :builtin_type2 Idle
    133 	*		idle		noeat strings
    134 	"str"		type
    135 	"float"		type
    136 	"binary"	type
    137 done
    138 	"a-zA-Z_"	builtin_type2
    139 
    140 :type Type
    141 	*		idle		noeat
    142 
    143 :local_type LocalType
    144 	*		idle		noeat
    145 	"a-zA-Z_"	local_type