#							-*- syntax -*-
# led syntax definition for Microsoft's C# language.
#
# (c) 2002 Jordan DeLong
#

words	:
	abstract event new as explicit null switch base extern
	this false operator throw break finally out true fixed
	override try case params typeof catch for private
	foreach protected checked goto public unchecked if
	readonly unsafe const implicit ref continue in return
	using virtual default sealed volatile delegate internal
	do is sizeof while lock stackalloc else static namespace
	get set

	:						are "keyword";

words	:
	struct object bool byte float uint char ulong class
	ushort decimal int sbyte interface short void double
	long enum string

	:						are "type";

words	: defined :					are "preproc";
regexp	"#[ \t]*[a-zA-Z]+"				are "preproc";

begin	: /* :
end	: */ :						are "comment";

begin	: // :
endatnl							are "comment";

tokens	: { } ( ) [ ] :					are "grouping";
tokens	: ! % & | * + - / \: < = > ? ^ ~ . :		are "operator";

string	"'"	quote "\\"				are "string";
string	"\""	quote "\\"				are "string";

options	: hlnums :;

