
HelpPath	SWI, C-Toolbox, C,

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

Search
#	startfold	("|<!")
#	endfold		("|!>")
	variables	("set")
End

# Foldparm1 (startfold,endfold)

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

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		OneLine
	StartWith	|
End

# Commands which are typically at the start of a line

SyntaxWords Group1 nocase startofline
	unset set obey filer_run filer_boot
	wimpslot if alias
End

# Common command parameters

SyntaxWords Group2 nocase
	-min -max
End

# Commands which may appear in the middle of lines, but are unlikely
# to form part of system variable names (ahem...)

SyntaxWords Group3 nocase
	rmensure rmload rmrun rmkill rmifthere error run key Lib ifthere CDir
	Pin Pinboard AddTinyDir Backdrop
End

# Common *Set variable names

SyntaxWords Group4 nocase endofid
	File$Type_
	Alias$@RunType_ Alias$@LoadType_ Alias$@PrintType_
	OLEServer$Type_
	TaskWindow$Server
	<
	$
	>
End

# Common referenced variable names

SyntaxWords Group5 nocase
	Run$Path Obey$Dir <Run$Path> <Obey$Dir>
End

# Highlight explicit common FSs or paths

SyntaxWords Group6 nocase EndofID
	System:
	ADFS: IDEFS: IDE:
	SCSI: SCSIFS:
	RAM: MemFS:
End

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

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

Functions

	Key	F2
	Menu	List of variables  F2
	Icon	LoF
	Select	ListOfFound(variables, Text, Align, Line, nocase)
	Help	HCM_lof

	Key	F10
	Menu	Save & Run  F10
	Icon	Run
	Select	SetTmp() SaveDClick ("<tmp$path>.<tmp$leaf>")
	Help	Click to save text and run.

End

Shortcuts
	re9	RMEnsure
	rl9	RMLoad
	sa9	Set Alias$@
	wi9	WimpSlot -Min
End
