dotfiles

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

awk.jsf.in (3272B)


      1 # JOE syntax highlight file for AWK
      2 
      3 # Resync whole file
      4 -
      5 
      6 =Idle
      7 =Bad		bold red
      8 =Preproc 	blue
      9 =Define		bold blue
     10 =Comment 	green
     11 =IncLocal	cyan
     12 =IncSystem	bold cyan
     13 =Constant 	cyan
     14 =Escape 	bold cyan
     15 =Type 		bold
     16 =Keyword 	bold
     17 =CppKeyword	bold
     18 =Brace		magenta
     19 =Control
     20 
     21 :reset Idle
     22 	*		first		noeat
     23 	" \t"		reset
     24 
     25 :first Idle
     26 	*		idle		noeat
     27 	"/"		regex
     28 	"#"		reset_line_comment	recolor=-1
     29 
     30 :regex Idle
     31 	*		regex
     32 	"/"		idle
     33 	"\\"		regex_skip
     34 
     35 :regex_skip Idle
     36 	*		regex
     37 
     38 :reset_line_comment Comment
     39 	*		reset_line_comment
     40 	"\n"		reset
     41 
     42 :idle Idle
     43 	*		idle
     44 	"\n"		reset
     45 	"#"		line_comment	recolor=-1
     46 	"0"		first_digit	recolor=-1
     47 	"1-9"		decimal	recolor=-1
     48 	"."		maybe_float
     49 	"\""		string		recolor=-1
     50 	"'"		char		recolor=-1
     51 	"a-zA-Z_"	ident		buffer
     52 	"{}"		brace		recolor=-1
     53 	"/,:;=()><[]*&|!~+\-%^"	control		recolor=-1
     54 
     55 :brace Brace
     56 	*	idle	noeat
     57 
     58 :control Control
     59 	*	idle	noeat
     60 
     61 :line_comment Comment
     62 	*		line_comment
     63 	"\n"		reset
     64 
     65 :first_digit Constant
     66 	*		idle	noeat
     67 	"xX"		hex
     68 	"."		float
     69 	"eE"		epart
     70 	"0-7"		octal
     71 	"89"		bad_number	recolor=-1
     72 
     73 :bad_number Bad
     74 	*		idle	noeat
     75 	"0-9"		bad_number
     76 
     77 :octal Constant
     78 	*		idle	noeat
     79 	"0-7"		octal
     80 	"89"		bad_number	recolor=-1
     81 
     82 :hex Constant
     83 	*		idle	noeat
     84 	"0-9A-Fa-f"	hex
     85 
     86 :decimal Constant
     87 	*		idle	noeat
     88 	"0-9"		decimal
     89 	"eE"		epart
     90 	"."		float
     91 
     92 :maybe_float Constant
     93 	*		idle	recolor=-2	noeat
     94 	"0-9"		float		recolor=-2
     95 
     96 :float Constant
     97 	*		idle	noeat
     98 	"eE"		epart
     99 	"0-9"		float
    100 
    101 :epart Constant
    102 	*		idle	noeat
    103 	"0-9+\-"	enum
    104 
    105 :enum Constant
    106 	*		idle	noeat
    107 	"0-9"		enum
    108 
    109 :string	Constant
    110 	*		string
    111 	"\""		idle
    112 	"\\"		string_escape	recolor=-1
    113 	"%"		string_control	recolor=-1
    114 
    115 :string_escape Escape
    116 	*		string
    117 	"x"		string_hex1
    118 	"0-7"		string_octal2
    119 	"\n"		string		recolor=-2
    120 
    121 :string_hex1 Escape
    122 	*		string		noeat
    123 	"0-9a-fA-F"	string_hex2
    124 
    125 :string_hex2 Escape
    126 	*		string		noeat
    127 	"0-9a-fA-F"	string
    128 
    129 :string_octal2 Escape
    130 	*		string		noeat
    131 	"0-7"		string_octal3
    132 
    133 :string_octal3 Escape
    134 	*		string		noeat
    135 	"0-7"		string
    136 
    137 :string_control Escape
    138 	*		string
    139 	"\""		string noeat
    140 	"\n"		reset
    141 	"0-9.\-+ #hjILtz$"	string_control
    142 
    143 :char Constant
    144 	*		char
    145 	"\n"		reset
    146 	"'"		idle
    147 	"\\"		char_escape	recolor=-1
    148 
    149 :char_escape	Escape
    150 	*		char
    151 	"x"		char_hex1
    152 	"0-7"		char_octal2
    153 	"\n"		char		recolor=-2
    154 
    155 :char_hex1 Escape
    156 	*		char		noeat
    157 	"0-9a-fA-F"	char_hex2
    158 
    159 :char_hex2 Escape
    160 	*		char		noeat
    161 	"0-9a-fA-F"	char
    162 
    163 :char_octal2 Escape
    164 	*		char		noeat
    165 	"0-7"		char_octal3
    166 
    167 :char_octal3 Escape
    168 	*		char		noeat
    169 	"0-7"		char
    170 
    171 :ident Idle
    172 	*		idle		noeat strings
    173 	"if"		kw
    174 	"else"		kw
    175 	"while"		kw
    176 	"do"		kw
    177 	"for"		kw
    178 	"break"		kw
    179 	"continue"		kw
    180 	"delete"		kw
    181 	"exit"		kw
    182 	"close"		kw
    183 	"getline"		kw
    184 	"next"		kw
    185 	"nextfile"		kw
    186 	"print"		kw
    187 	"printf"		kw
    188 	"system"		kw
    189 	"fflush"		kw
    190 	"atan2"		kw
    191 	"cos"		kw
    192 	"exp"		kw
    193 	"int"		kw
    194 	"log"		kw
    195 	"rand"		kw
    196 	"sin"		kw
    197 	"sqrt"		kw
    198 	"srand"		kw
    199 	"asort"		kw
    200 	"asorti"		kw
    201 	"gensub"		kw
    202 	"gsub"		kw
    203 	"index"		kw
    204 	"length"		kw
    205 	"match"		kw
    206 	"split"		kw
    207 	"sprintf"		kw
    208 	"strtonum"		kw
    209 	"sub"		kw
    210 	"substr"		kw
    211 	"tolower"		kw
    212 	"toupper"		kw
    213 	"mktime"		kw
    214 	"strftime"		kw
    215 	"systime"		kw
    216 	"and"		kw
    217 	"compl"		kw
    218 	"lshift"		kw
    219 	"or"		kw
    220 	"rshift"		kw
    221 	"xor"		kw
    222 	"bindtextdomain"		kw
    223 	"dcgettext"		kw
    224 	"dcngettext"		kw
    225 	"function"		kw
    226 	"return"	kw
    227 done
    228 	"a-zA-Z0-9_"	ident
    229 
    230 :kw Keyword
    231 	*	idle	noeat