#-------------------------------------------------------------------------------
#
#	Name    : StrongMode
#	Purpose : StrongED mode file for Modefiles
#	Author  :  Andrew Black
#	Licence : Freeware
#	Version : 1.01, 16-11-03
#
#-------------------------------------------------------------------------------
# 17-07-01 FG Changed shortcuts to `` so that they're in line with other modes
#             Added shortcuts for various sections
#             Clicking Select on LoF-icon now searches Text instead of All
#             Clicking Adjust on LoF-icon now searches All
# 16-11-03 FG Added Drag to group 5
#-------------------------------------------------------------------------------

HelpPath	StrongED

Search
	section	~("end"|"#") {isalpha}+
End

# Shortcuts for the various sections inside a modefile

Shortcuts
	``fu	Functions\n	\@\nEnd
	``fe	\tKey	\@\n	Menu	\@\n	Icon	\@\n	Help	\@\n	Select\t\@
	``se	Search\n	\@\nEnd
	``sc	SyntaxComment\n	\@\nEnd
	``so	SyntaxOptions\n	\@\nEnd
	``sw	SyntaxWords\n	\@\nEnd
	``sh	Shortcuts\n	\@\nEnd
	``re	Replace\n	\@\nEnd
	``cl	ClickList\n	\@\nEnd
	``kl	KeyList\n	\@\nEnd
	``wp	WriteProtect\n	\@\nEnd
	``-	#-------------------------------------------------------------------------------
End


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

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

SyntaxOptions
	SingleQuote	No
	DoubleQuote	Yes
	QuoteQuote	No
	QuoteChar	\
	SplitString	No
End

# The sections

SyntaxWords Group1 nocase StartSpace
	ClickList Functions KeyList Replace Search Shortcuts
	ID_FirstChar ID_Middle ID_LastChar
	SyntaxWords SyntaxOptions SyntaxComment
	PrintHead PrintFoot HelpPath Bitmap End
End

# Section elements

SyntaxWords Group2 nocase StartSpace
	Key Menu Icon Help
	SingleQuote DoubleQuote QuoteQuote SplitString QuoteChar HexPrefix BinPrefix Numbers
	Type StartWith EndWith
End

# defines the comment here for the time being,
# since real comments can't be tied to start of line only

SyntaxWords Group3 nocase StartOfLine EndOfLine
	#
End

# Options for the SyntaxWords section

SyntaxWords Group4 nocase
	EndAlways EndNonID EndOfID EndOfLine EndOfExpr EndAsm EndSTM EndBL
	StartOfLine StartSpace
	case nocase
End

# Section elements that can be preceded with cs-

SyntaxWords Group5 nocase StartSpace
	Select
	^Select
	Select
	^Select
	Adjust
	^Adjust
	Adjust
	^Adjust
	Drag
	^Drag
	Drag
	^Drag
End

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

Functions
	Icon	lof
	Select	ListOfFound(section, Text, Whole, Line, NoCase)
	Menu	List of sections
	Help	HSt_lof

	Adjust	ListOfFound(section, All, Whole, Line, NoCase)
End
