File spec.jsf of Package joe

# JOE syntax highlight file for RPM spec files

# some text sections are _very_ long (e.g. %changelog)
-4000

=Idle
=Colon        blue
=Macro         bold blue
=Comment        green
=Variable       cyan
=Text		magenta
=Section	red

:idle	Idle
	*	idle
	"%"	expr	recolor=-1
	"\n"	colident
	"#"	comment recolor=-1

:colident Colon
	*		idle noeat recolor=-100
	":"		idle
	"A-Za-z0-9"	colident

:expr	Macro
	*	idle recolor=-1
	"%"	idle
	" \t"	expr
	"a-zA-Z_0-9"	exprident recolor=-1 buffer
	"{"	exprvar recolor=-1

:exprident Variable
	*	idle	noeat recolor=-1 strings
	"define"	define
	"description"	textsection
	"changelog"	textsection
	"build"		section
	"install"	section
	"clean"		section
	"files"		section
	"package"	section
	"prep"		section
	"pre"		section
	"post"		section
	"postun"	section
	"preun"		section
	"setup"		macro
	"patch"		macronum
	"dir"		macro
	"config"	macro
	"doc"		macro
	"defattr"	macro
	"ifarch"	macro
	"ifnarch"	macro
	"endif"		macro
	"else"		macro
	"if"		macro
done
	"a-zA-Z_"	exprident

:section Section
	*	idle

:macronum Macro
	*	idle recolor=-1
	"0-9"	macronum recolor=-1

:macro Macro
	*	idle recolor=-1

:define	Macro
	*	defineident noeat recolor=-1
	" \t"	define
	"\n"	idle noeat
	
:defineident Variable
	*	defineident
	" \t\n"	idle noeat

:exprvar	Variable
	*	exprvar
	"}"	idle

:textsection	Section
	*	textsection2 noeat

:textsection2	Idle
	*	textsection2
	"\n"	textsection3

:textsection3	Text
	*	textsection3
	"%"	textsection4 recolor=-1

:textsection4	Text
	*	expr noeat recolor=-2
	"%"	textsection3

:comment Comment
	*	comment
	"\n"	idle noeat
openSUSE Build Service is sponsored by