dotfiles

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

elixir.jsf (4566B)


      1 # JOE syntax highlight file for Elixir
      2 
      3 # Written by Andrey Lisin (at gmail.com)
      4 
      5 # TODO
      6 # - test attributes and docstrings highlighting
      7 # - maybe highlight arithmetical operations
      8 # - comprehensions highlighting
      9 
     10 # Changes
     11 # - fix atom with underscore highlighting
     12 # - distinct docstrings and module attributes
     13 
     14 =Idle
     15 =Comment	green
     16 =Keyword	bold
     17 =Bif		#fg_501
     18 =String		cyan
     19 =Extrapolation  cyan bold
     20 =Atom		red
     21 =Attribute	#fg_505
     22 =ModAttr	yellow #fg_141
     23 =Brace		magenta #fg_440
     24 =Brack		magenta #fg_311
     25 =Int		cyan
     26 =Def		
     27 =ModDef		blue bold
     28 =Underscore	blue #fg_310 #brown
     29 
     30 
     31 :idle Idle
     32 	*		idle
     33 	"#"		line_comment	noeat
     34 	"a-zA-Z"	ident		noeat
     35 	"_"		underscore	recolor=-1
     36 	"'"		single_quoted	recolor=-1
     37 	"\""		double_quoted	recolor=-1
     38 	":"		atom		recolor=-1
     39 	"@"		modattr		recolor=-1
     40 	"[]"            brack           recolor=-1
     41 	"{}"		brace		recolor=-1
     42 	"|"		maybe_pipe
     43 	"\\"		maybe_opt
     44 	"-"		maybe_rarrow	recolor=-1
     45 	"<"		maybe_larrow	recolor=-1
     46 	"0-9"		decimal		recolor=-1
     47 	
     48 :line_comment Comment
     49 	*		line_comment
     50 	"\n"		idle
     51 	
     52 :single_quoted String
     53 	*		single_quoted
     54 	"'"		idle
     55 	
     56 :double_quoted String
     57 	*		double_quoted
     58 	"#"		maybe_extrapolation
     59 	"\""		idle
     60 	
     61 :maybe_extrapolation String
     62 	*		double_quoted   noeat
     63 	"{"		extrapolation	recolor=-2
     64 	
     65 :extrapolation Extrapolation
     66 	*		extrapolation
     67 	"}"		double_quoted
     68 	"\""		double_quoted	noeat
     69 	
     70 :atom Atom
     71 	*		idle		noeat
     72 	"a-zA-Z0-9_"	atom
     73 	
     74 :modattr ModAttr
     75 	*		idle
     76 	"a-zA-Z0-9_"	modattr
     77 	" "		maybe_edoc
     78 	
     79 :maybe_edoc Idle
     80 	*		idle
     81 	" "		maybe_edoc
     82 	"\""		string_dq_1 	recolor=-1
     83 	
     84 :string_dq_1 String
     85 	*		double_quoted	recolor=-1
     86 	"\""		string_dq_2
     87 	
     88 :string_dq_2 Comment
     89 	*		idle
     90 	"\""		docstr_dq	recolor=-3
     91 	
     92 :docstr_dq Comment
     93 	*		docstr_dq
     94 	"\""		docstr_dq_1
     95 	
     96 :docstr_dq_1 Comment
     97 	*		docstr_dq
     98 	"\""		docstr_dq_2
     99 	
    100 :docstr_dq_2 Comment
    101 	*		docstr_dq
    102 	"\""		idle
    103 	
    104 
    105 
    106 :brace Brace
    107 	*		idle		noeat
    108 	
    109 :brack Brack
    110 	*		idle		noeat
    111 
    112 :maybe_larrow Idle
    113 	"-"		arrow		recolor=-2
    114 	*		idle		noeat
    115 
    116 :maybe_rarrow Idle
    117 	">"		arrow		recolor=-2
    118 	*		idle		noeat
    119 
    120 :arrow Keyword
    121 	*		idle		noeat
    122 	
    123 :maybe_pipe Idle
    124 	*		idle
    125 	">"		pipe		recolor=-2
    126 	
    127 :pipe Keyword
    128 	*		idle		noeat
    129 	
    130 :maybe_opt Idle
    131 	*		idle
    132 	"\\"		opt		recolor=-2
    133 	
    134 :opt Keyword
    135 	*		idle		noeat
    136 	
    137 :decimal Int
    138 	*		idle		noeat
    139 	"0-9_"		decimal
    140 	"."		float
    141 	
    142 :float Int
    143 	*		idle		noeat
    144 	"0-9"		float
    145 	
    146 	
    147 
    148 	
    149 :underscore Underscore
    150 	*		idle		noeat
    151 	"a-zA-Z0-9?_"	underscore
    152 	
    153 	
    154 :ident Idle
    155 	*		ident1		noeat buffer mark
    156 	
    157 :ident1 Idle
    158 	*		idle		noeat strings
    159 	"def"					start_def
    160 	"defp"					start_def
    161 	"defmodule" 				start_mod_def
    162 	"defprotocol"				start_def
    163 	"defmacro"				start_def
    164 	"defmacrop" 				start_def
    165 	"defdelegate"				start_def
    166 	"defexception" 				start_def
    167 	"defstruct" 				start_def
    168 	"defimpl"				start_def
    169 	"defcallback"				start_def
    170 	"import"				start_mod_def
    171 	"require"				start_mod_def
    172 	"test"					start_def
    173 	"use"					start_mod_def
    174 	"alias"					start_mod_def
    175 	"end"					kw
    176 	"do"					kw
    177 	"if"					kw
    178 	"else"					kw
    179 	"unless"				kw
    180 	"case"					kw
    181 	"cond"					kw
    182 	"true"					kw
    183 	"false"					kw
    184 	"fn"					kw
    185 	"Agent"					bif
    186 	"Application"				bif
    187 	"Atom"					bif
    188 	"Base"					bif
    189 	"Behaviour"				bif
    190 	"Bitwise"				bif
    191 	"Builtin"				bif
    192 	"Code"					bif
    193 	"Dict"					bif
    194 	"EEx"					bif
    195 	"Elixir"				bif
    196 	"Enum"					bif
    197 	"ExUnit"				bif
    198 	"Exception"				bif
    199 	"File"					bif
    200 	"File.Stat"				bif
    201 	"File.Stream"				bif
    202 	"Float"					bif
    203 	"Function"				bif
    204 	"GenEvent"				bif
    205 	"GenServer"				bif
    206 	"GenTCP"				bif
    207 	"HashDict"				bif
    208 	"HashSet"				bif
    209 	"IO"					bif
    210 	"IO.ANSI"				bif
    211 	"IO.Stream"				bif
    212 	"Inspect.Algebra"			bif
    213 	"Inspect.Opts"				bif
    214 	"Integer"				bif
    215 	"Kernel"				bif
    216 	"Kernel.ParallelCompiler"		bif
    217 	"Kernel.ParallelRequire"		bif
    218 	"Kernel.SpecialForms"			bif
    219 	"Kernel.Typespec" 			bif
    220 	"Keyword"				bif
    221 	"List"					bif
    222 	"Macro"					bif
    223 	"Macro.Env"				bif
    224 	"Map"					bif
    225 	"Math"					bif
    226 	"Module"				bif
    227 	"Node"					bif
    228 	"OptionParser"				bif
    229 	"OrdDict"				bif
    230 	"Path"					bif
    231 	"Port"					bif
    232 	"Process"				bif
    233 	"Protocol"				bif
    234 	"Range"					bif
    235 	"Record"				bif
    236 	"Regex"					bif
    237 	"Set"					bif
    238 	"Stream"				bif
    239 	"String"				bif
    240 	"StringIO"				bif
    241 	"Supervisor"				bif
    242 	"Supervisor.Spec"			bif
    243 	"System"				bif
    244 	"Task"					bif
    245 	"Task.Supervisor"			bif
    246 	"Tuple"					bif
    247 	"URI"					bif
    248 	"UnboundMethod"				bif
    249 	"Version"				bif
    250 done
    251 	"a-zA-Z_0-9"	ident1
    252 	":"		attr		noeat recolormark
    253 	
    254 :attr Attribute
    255 	*		idle
    256 	
    257 :kw Keyword
    258 	*		idle		noeat
    259 	
    260 :bif Bif
    261 	*		idle		noeat
    262 	
    263 :start_def Keyword
    264 	*		def
    265 	
    266 :def Def
    267 	*		def
    268 	" ("		idle		recolor=-1	
    269 	
    270 :start_mod_def Keyword
    271 	*		moddef
    272 	
    273 :moddef ModDef
    274 	*		moddef
    275 	" "		idle		recolor=-1
    276 	"\n"		idle