dotfiles

My dotfiles.
Log | Files | Refs | LICENSE

avr.jsf (2946B)


      1 # JOE syntax highlight file for AVR assembly language
      2 
      3 =Idle
      4 =Ident
      5 =Preproc			# basic color for directives
      6 =Include	+Preproc	# "include" - color
      7 =Define		+Preproc	# same for "def" and "equ"
      8 =DefinedIdent	+Define +Ident	# text after ".def" or ".equ"
      9 =Macro		+Define		# color of word "macro"
     10 =Path		+String		# color for include-path
     11 =Com		+Keyword	# command
     12 =Comment			# comment-color
     13 =Label		+DefinedIdent	# label
     14 
     15 
     16 :idle Idle
     17 	*				idle
     18 	"."				preproc		recolor=-1
     19 	";"				comment		recolor=-1
     20 	"a-zA-Z_0-9"	ident		recolor=-1 buffer mark
     21 
     22 :preproc Preproc
     23 	*			preproc
     24 	"a-zA-Z"	preident	buffer
     25 	"\n"		idle
     26 	";"			comment recolor=-1
     27 	
     28 :preident Preproc
     29 	*			preproc		noeat istrings
     30 	"include"	preinc
     31 	"def"		predef
     32 	"equ"		predef
     33 	"macro"		premacro
     34 	"endmacro"	premacro
     35 	"endm"		premacro
     36 done
     37 	"a-zA-Z"	preident
     38 	";"			comment		recolor=-1
     39 
     40 :preinc Include
     41 	*			preinc
     42 	" \t"		path
     43 	"\n"		idle
     44 	";"			comment		recolor=-1
     45 
     46 :predef Define
     47 	*			predef
     48 	" \t"		definition
     49 	"\n"		idle
     50 	";"			comment		recolor=-1
     51 
     52 :definition DefinedIdent
     53 	*			definition
     54 	"\n"		idle
     55 	";"			comment		recolor=-1
     56 
     57 :premacro Macro
     58 	*			premacro 
     59 	" \t\n"		idle
     60 	";"			comment 	recolor=-1
     61 
     62 :path Path
     63 	*			path
     64 	"\n"		idle
     65 	";"			comment		recolor=-1
     66 
     67 :comment Comment comment
     68 	*			comment
     69 	"BFHNTX"        	comment         noeat call=comment_todo.comment_todo()
     70 	"\n"			idle
     71 
     72 :ident Ident
     73 	*				idle noeat istrings
     74 	"and"		com
     75 	"andi"		com
     76 	"eor"		com
     77 	"or"		com
     78 	"ori"		com
     79 	"com"		com
     80 	"neg"		com
     81 	"clr"		com
     82 	"ser"		com
     83 	"cr"		com
     84 	"tst"		com
     85 	"swap"		com
     86 	"add"		com
     87 	"adc"		com
     88 	"adiw"		com
     89 	"sub"		com
     90 	"subi"		com
     91 	"sbc"		com
     92 	"sbci"		com
     93 	"sbiw"		com
     94 	"dec"		com
     95 	"inc"		com
     96 	"asr"		com
     97 	"lsl"		com
     98 	"lsr"		com
     99 	"rol"		com
    100 	"ror"		com
    101 	"mul"		com
    102 	"muls"		com
    103 	"mulsu"		com
    104 	"fmul"		com
    105 	"fmuls"		com
    106 	"fmulsu"	com
    107 	"cbr"		com
    108 	"sbr"		com
    109 	"sbi"		com
    110 	"cbi"		com
    111 	"bclr"		com
    112 	"bset"		com
    113 	"bld"		com
    114 	"bst"		com
    115 	"clc"		com
    116 	"sec"		com
    117 	"cln"		com
    118 	"sen"		com
    119 	"clz"		com
    120 	"sez"		com
    121 	"cli"		com
    122 	"sei"		com
    123 	"cls"		com
    124 	"ses"		com
    125 	"clv"		com
    126 	"sev"		com
    127 	"clt"		com
    128 	"set"		com
    129 	"clh"		com
    130 	"seh"		com
    131 	"mov"		com
    132 	"movw"		com
    133 	"ldi"		com
    134 	"ld"		com
    135 	"ldd"		com
    136 	"lds"		com
    137 	"st"		com
    138 	"std"		com
    139 	"sts"		com
    140 	"lpm"		com
    141 	"elpm"		com
    142 	"spm"		com
    143 	"espm"		com
    144 	"in"		com
    145 	"out"		com
    146 	"push"		com
    147 	"pop"		com
    148 	"rjmp"		com
    149 	"ijmp"		com
    150 	"eijmp"		com
    151 	"jmp"		com
    152 	"rcall"		com
    153 	"icall"		com
    154 	"eicall"	com
    155 	"call"		com
    156 	"ret"		com
    157 	"reti"		com
    158 	"cp"		com
    159 	"cpc"		com
    160 	"cpi"		com
    161 	"cpse"		com
    162 	"sbrc"		com
    163 	"sbrs"		com
    164 	"sbic"		com
    165 	"sbis"		com
    166 	"brbc"		com
    167 	"brbs"		com
    168 	"brcs"		com
    169 	"brcc"		com
    170 	"breq"		com
    171 	"brne"		com
    172 	"brsh"		com
    173 	"brlo"		com
    174 	"brmi"		com
    175 	"brpl"		com
    176 	"brge"		com
    177 	"brlt"		com
    178 	"brhs"		com
    179 	"brhc"		com
    180 	"brts"		com
    181 	"brtc"		com
    182 	"brvs"		com
    183 	"brvc"		com
    184 	"brid"		com
    185 	"brie"		com
    186 	"nop"		com
    187 	"sleep"		com
    188 	"wdr"		com
    189 done
    190 	"a-zA-Z0-9_"	ident
    191 	":"				itslabel recolor=-1 markend recolormark
    192 
    193 :itslabel Label
    194 	*			idle
    195 
    196 :com Com
    197 	*			idle noeat