dotfiles

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

powershell.jsf (4358B)


      1 # PowerShell syntax highlighting for Joe's Own Editor
      2 # Oskar Liljeblad <oskar@osk.mine.nu>, 2014-02-11
      3 #
      4 # PowerShell is the poor man's[1] replacement for a real shell such as Bash.
      5 # [1] Someone who has to use Windows for whatever reason.
      6 #
      7 # Reference: http://www.microsoft.com/en-us/download/details.aspx?id=36389
      8 # Status:
      9 # 	1	100%
     10 #	2.1	100%
     11 #  	2.2.1	100% except signature support
     12 #	2.2.2	100%
     13 #	2.2.3	100% except requires support
     14 #	2.2.4	100%
     15 #	2.3.1	100%
     16 #	2.3.2	100% except automatic variables
     17 #	2.3.3	100% no coloring
     18 #	2.3.4	100% no coloring
     19 #	2.3.5	100% no coloring
     20 #	2.3.6	100%
     21 
     22 =Idle
     23 =Comment 		green
     24 =Constant 		cyan
     25 =ConstEscape 		bold cyan
     26 =Keyword 		bold
     27 =Var 			magenta
     28 =VarEscape		bold magenta
     29 
     30 :idle Idle
     31 	*		idle
     32 	"#"		comment			recolor=-1
     33 	"$"		var			recolor=-1
     34 	"@"		var_array		recolor=-1
     35 	"<"		idle1
     36 	"\""		string_dq		recolor=-1
     37 	"'"		string_sq		recolor=-1
     38 	"@"		idle2
     39 	"a-zA-Z_-"	ident			buffer
     40 
     41 :idle1 Idle
     42 	*		idle			noeat
     43 	"#"		delim_comment		recolor=-2
     44 
     45 :idle2 Idle
     46 	*		idle			noeat
     47 	"\""		herestr_dq		recolor=-2
     48 	"'"		herestr_sq		recolor=-2
     49 
     50 :comment Comment
     51 	*		comment
     52 	"\r\n"		idle
     53 
     54 :var_array Var
     55 	*		idle			noeat
     56 	"$?^"		idle
     57 	"a-zA-Z_"	var_name
     58 
     59 :var Var
     60 	*		idle			noeat
     61 	"{"		var_brack
     62 	"$?^"		idle
     63 	"a-zA-Z_"	var_name
     64 
     65 :var_name Var
     66 	*		idle			noeat recolor=-1
     67 	"a-zA-Z0-9_:?"	var_name
     68 
     69 :var_brack Var
     70 	*		var_brack
     71 	"`"		var_escape		recolor=-1
     72 	"}"		idle
     73 
     74 :var_escape VarEscape
     75 	*		var_brack
     76 
     77 :delim_comment Comment
     78 	*		delim_comment
     79 	"#"		delim_comment1
     80 
     81 :delim_comment1 Comment
     82 	*		delim_comment		noeat
     83 	">"		idle
     84 
     85 :kw Keyword
     86 	*		idle			noeat
     87 
     88 :string_dq Constant
     89 	*		string_dq
     90 	"\"\n"		idle
     91 	"$"		string_dq_subst		recolor=-1
     92 	"`"		string_dq_esc		recolor=-1
     93 
     94 :string_dq_subst Var
     95 	*		string_dq		noeat recolor=-2
     96 	"a-zA-Z_"	string_dq_subst_name
     97 	"{"		string_dq_subst_brack
     98 	"("		string_dq_subst_parens
     99 	"`"		string_dq_subst_escape 	recolor=-1
    100 
    101 :string_dq_subst_name Var
    102 	*		string_dq		recolor=-1 noeat
    103 	"a-zA-Z0-9_:"	string_dq_subst_name
    104 	"`"		string_dq_subst_escape 	recolor=-1
    105 
    106 :string_dq_subst_escape VarEscape
    107 	*		string_dq_subst_name
    108 
    109 :string_dq_subst_brack Var
    110 	*		string_dq_subst_brack
    111 	"}"		string_dq
    112 
    113 :string_dq_subst_parens Var
    114 	*		string_dq_sustr_parens
    115 	")"		string_dq
    116 
    117 :string_sq Constant
    118 	*		string_sq
    119 	"\'\n"		idle
    120 
    121 :string_dq_esc ConstEscape
    122 	*		string_dq
    123 
    124 :string_sq_esc ConstEscape
    125 	*		string_sq
    126 
    127 :herestr_dq Constant
    128 	*		herestr_dq
    129 	"\""		herestr_dq1
    130 	"$"		herestr_dq_subst	recolor=-1
    131 
    132 :herestr_dq1 Constant
    133 	*		herestr_dq		noeat
    134 	"@"		idle
    135 
    136 :herestr_dq_subst Var
    137 	*		herestr_dq		noeat recolor=-2
    138 	"a-zA-Z_"	herestr_dq_subst_name
    139 	"("		herestr_dq_subst_parens
    140 	"`"		herestr_dq_subst_escape recolor=-1
    141 
    142 :herestr_dq_subst_name Var
    143 	*		herestr_dq		recolor=-1 noeat
    144 	"a-zA-Z0-9_:"	herestr_dq_subst_name
    145 	"`"		herestr_dq_subst_escape	recolor=-1
    146 
    147 :herestr_dq_subst_escape VarEscape
    148 	*		herestr_dq_subst_name
    149 
    150 :herestr_dq_subst_parens Var
    151 	*		herestr_dq_subst_parens
    152 	")"		herestr_dq
    153 
    154 :herestr_sq Constant
    155 	*		herestr_sq
    156 	"\'"		herestr_sq1
    157 
    158 :herestr_sq1 Constant
    159 	*		herestr_sq		noeat
    160 	"@"		idle
    161 
    162 :ident Idle
    163 	*		idle			noeat istrings
    164 	"-and"		kw
    165 	"-band"		kw
    166 	"-bnot"		kw
    167 	"-bor"		kw
    168 	"-bxor"		kw
    169 	"-not"		kw
    170 	"-or"		kw
    171 	"-xor"		kw
    172 	"-f"		kw
    173 	"-as"		kw
    174 	"-ccontains"	kw
    175 	"-ceq"		kw
    176 	"-cge"		kw
    177 	"-cgt"		kw
    178 	"-cle"		kw
    179 	"-clike"	kw
    180 	"-clt"		kw
    181 	"-cmatch"	kw
    182 	"-cne"		kw
    183 	"-cnotcontains"	kw
    184 	"-cnotlike"	kw
    185 	"-cnotmatch"	kw
    186 	"-contains"	kw
    187 	"-creplace"	kw
    188 	"-csplit"	kw
    189 	"-eq"		kw
    190 	"-ge"		kw
    191 	"-gt"		kw
    192 	"-icontains"	kw
    193 	"-ieq"		kw
    194 	"-ige"		kw
    195 	"-igt"		kw
    196 	"-ile"		kw
    197 	"-ilike"	kw
    198 	"-ilt"		kw
    199 	"-imatch"	kw
    200 	"-in"		kw
    201 	"-ine"		kw
    202 	"-inotcontains"	kw
    203 	"-inotlike"	kw
    204 	"-inotmatch"	kw
    205 	"-ireplace"	kw
    206 	"-is"		kw
    207 	"-isnot"	kw
    208 	"-isplit"	kw
    209 	"-join"		kw
    210 	"-le"		kw
    211 	"-like"		kw
    212 	"-lt"		kw
    213 	"-match"	kw
    214 	"-ne"		kw
    215 	"-notcontains"	kw
    216 	"-notin"	kw
    217 	"-notlike"	kw
    218 	"-notmatch"	kw
    219 	"-replace"	kw
    220 	"-shl"		kw
    221 	"-shr"		kw
    222 	"-split"	kw
    223 	"begin"		kw
    224 	"break"		kw
    225 	"catch"		kw
    226 	"class"		kw
    227 	"continue"	kw
    228 	"data"		kw
    229 	"define"	kw
    230 	"do"		kw
    231 	"dynamicparam"	kw
    232 	"else"		kw
    233 	"elseif"	kw
    234 	"end"		kw
    235 	"exit"		kw
    236 	"filter"	kw
    237 	"finally"	kw
    238 	"for"		kw
    239 	"foreach"	kw
    240 	"from"		kw
    241 	"function"	kw
    242 	"if"		kw
    243 	"in"		kw
    244 	"inlinescript"	kw
    245 	"parallel"	kw
    246 	"param"		kw
    247 	"process"	kw
    248 	"return"	kw
    249 	"switch"	kw
    250 	"throw"		kw
    251 	"trap"		kw
    252 	"try"		kw
    253 	"until"		kw
    254 	"using"		kw
    255 	"var"		kw
    256 	"while"		kw
    257 	"workflow"	kw
    258 done
    259 	"a-zA-Z_"	ident