
HelpPath	C,

#-------------------------------------------

Search
	include1	[_spct] "#include" _spct "<" [_spct] @0 * (@9 ".H" [_spct] ">")
	include2	[_spct] "#include" _spct '"' [_spct] @0 * (@9 ".H" [_spct] '"')

End

Foldparm1 ("/*{{{","/*}}}",startspace,case)

ClickList
	include1	LoadOne ("C:H.<tmp$word>")
	include2	LoadOne ("<tmp$path>.^.H.<tmp$word>")
End

#-------------------------------------------

ID_FirstChar	A-Za-z_
ID_Middle	A-Za-z_0-9

SyntaxOptions
	SingleQuote	Yes
	DoubleQuote	Yes
	QuoteChar	\
	QuoteQuote	No
	SplitString	Yes
	HexPrefix	0x
End

SyntaxComment 1
	Type		Multiline
	StartWith	/*
	EndWith		*/
End

SyntaxWords Group1 case
	do default
	continue
	for while break do return goto
	if else switch default
End

SyntaxWords Group2 case
	auto register static extern typedef
	void char short int long float double signed unsigned
	const volatile
	struct union
End

SyntaxWords Group3 nocase EndOfLine
	#include #ifdef #ifndef #else #endif
	#pragma #line #error #define #undef
End

#----------------------------------------------------------

KeyList
	^[		InsertStr("/*")
	^]		InsertStr("*/")
#	Return		Clicklist("indent")
End

#----------------------------------------------------------

Functions

	Key	F2
	Menu	List of functions F2
	Icon	LoF
	Select	ListOfC (All,Sort)
	Help	HCM_lof

	Key 	PgUp
	Icon	up
	Select	GotoPrevC (Text)
	Help	HCM_up

	Key 	PgDown
	Icon	down
	Select	GotoNextC (Text)
	Help	HCM_dn

	Key	^H
	Menu	Load H.*
	Icon	save
	Help	HCM_ld
	Select	SetTmp() LoadOne ("<tmp$path>.^.H.<tmp$word>","C:H.<tmp$word>")

	Key	F10
	Menu	Save & Compile      F10
	Icon	Run
	Select	SaveDrag ("cc")
	Help	HCM_run

	Key	^F10
	Menu	Save & Make      ^F10
	Icon	brick
	Select	SetTmp() SaveDClick ("<tmp$path>.^.Makefile")
	Help	HCM_mak

	Key	^G 1
	Menu	Goto function definition
	Icon	goto
	Select	Push GotoFoundC (all)
	Help	HCM_go

	Key	^G 2
	Select	Pop

End

Shortcuts
	w(	while (\@) {\n\i  \@\n\i}
	f(	for (\@;\@;\@) {\n\i  \@\n\i}
	s(	switch (\@) {\n\i  case\n\i}
	p(	printf("\@");
	#<	#include <\@.h>\n\@
	#"	#include "\@.h"\n\@
	``-     /*----------------------------------------------------------------------------*/
End
