dotfiles

My dotfiles.
Log | Files | Refs | LICENSE

joerc.jsf (1803B)


      1 # JOE syntax highlight file for typical UNIX configuration files
      2 
      3 =Idle
      4 =Comment
      5 =Constant
      6 =Number		+Constant
      7 =String		+Constant
      8 =Escape
      9 =Bad
     10 
     11 :idle Idle
     12 	*		not_comment
     13 	"\n"		idle
     14 	" 	"	comment
     15 	"-"		option
     16 	"\""		keybind_string recolor=-1
     17 	"\i"		keybind
     18 
     19 :keybind Idle
     20 	*		keybind
     21 	"\""		keybind_string recolor=-1
     22 	"\n"		idle
     23 	","		keybind_after_comma
     24 	" 	"	keybind1
     25 
     26 :keybind_after_comma Idle
     27 	*		keybind noeat
     28 	" 	"	keybind_after_comma
     29 	"\n"		keybind_after_comma
     30 
     31 :keybind_string String string
     32 	*		keybind_string
     33 	"\\"		keybind_escape recolor=-1
     34 	"\""		keybind
     35 
     36 :keybind_escape Escape
     37 	*		keybind_string
     38 
     39 :keybind1 Idle
     40 	*		keybind2
     41 	"\n"		idle
     42 	" 	"	keybind1
     43 
     44 :keybind2 Idle
     45 	*		keybind2
     46 	"\n"		idle
     47 	"	"	comment noeat
     48 	" "		maybe_com
     49 
     50 :maybe_com Idle
     51 	*		keybind2 noeat
     52 	" 	"	comment noeat
     53 
     54 :option Idle
     55 	*		bad recolor=-1
     56 	"-"		option
     57 	"\i"		ident buffer
     58 
     59 :ident Idle
     60 	*		comment noeat strings
     61 	"backpath"		sopt
     62 	"lines"			nopt
     63 	"baud"			nopt
     64 	"columns"		nopt
     65 	"skiptop"		nopt
     66 	"text_color"		sopt
     67 	"status_color"		sopt
     68 	"help_color"		sopt
     69 	"menu_color"		sopt
     70 	"prompt_color"		sopt
     71 	"msg_color"		sopt
     72 	"lmsg"			sopt
     73 	"rmsg"			sopt
     74 	"smsg"			sopt
     75 	"zmsg"			sopt
     76 	"xmsg"			sopt
     77 	"aborthint"		sopt
     78 	"helphint"		sopt
     79 	"cpara"			sopt
     80 	"encoding"		sopt
     81 	"syntax"		sopt
     82 	"indentc"		nopt
     83 	"istep"			nopt
     84 	"lmargin"		nopt
     85 	"rmargin"		nopt
     86 	"keymap"		sopt
     87 	"mfirst"		sopt
     88 	"mnew"			sopt
     89 	"mold"			sopt
     90 	"msnew"			sopt
     91 	"msold"			sopt
     92 	"text_delimiters"	sopt
     93 done
     94 	"\c"	ident
     95 
     96 :sopt Idle
     97 	*		dosopt # Do eat the space
     98 
     99 :dosopt String string
    100 	*		dosopt
    101 	"\n"		idle
    102 
    103 :nopt Idle
    104 	*		bad recolor=-1
    105 	" \t"		nopt
    106 	"0-9"		nopt1 recolor=-1
    107 
    108 :nopt1 Number
    109 	*		comment noeat
    110 	"0-9"		nopt1
    111 
    112 :bad Bad
    113 	*		bad
    114 	"\n"		idle
    115 
    116 :comment Comment comment
    117 	*		comment
    118 	"\n"		idle
    119 
    120 :not_comment Idle
    121 	*		not_comment
    122 	"\n"		idle