#
# Python modefile 0.12 Laurence Tratt 1997 - 1999
#



HelpPath	Python,


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

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

Search
	FoldStart	"class" | "def"
	Method		"def" * ":"
	FirstChar	'_A-Za-z_'
	MiddleChars	'A-Za-z_0-9'
	_MarkWord	FirstChar {MiddleChars} {{White} "." {White} FirstChar {MiddleChars}}
End

FoldParm1(FoldStart, , StartSpace, case)

SyntaxOptions
	SingleQuote	Yes
	DoubleQuote	Yes
	QuoteQuote	Yes
	SplitString	Yes
	HexPrefix	0x
End

SyntaxComment 1
	Type		OneLine
	StartWith	#
	EndWith		NL
End

SyntaxComment 2
	Type		MultiLine
	StartWith	"\"\"\""
	EndWith		"\"\"\""
End

# Control flow

SyntaxWords Group1 case
	if break continue elif else except finally assert
	for raise try while pass return import from
End

# Definitions

SyntaxWords Group2 case
	def class lambda global
End

# Expressions

SyntaxWords Group3 case
	and not or is in
End

SyntaxWords Group4 case
	None self
End

# Built-in functions / commands

SyntaxWords Group5 case
	abs apply callable chr cmp coerce compile complex delattr dir
	divmod eval execfile filter float getattr globals hasattr hash
	hex id input int intern isinstance issubclass len list locals
	long map max min oct open ord pow range raw_input reduce
	reload repr round setattr slice str tuple type vars xrange
	__import__ del
End

SyntaxWords Group6 case

End

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

KeyList
End

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

Functions

Key	F10
	Menu	Save and run
	Select	SetTmp() SaveRun ("<Tmp$Path>.<Tmp$Leaf>")
	Help	Click to save and compile this Python program.

	Key	F2
	Menu	List of functions in this text F2
	Icon	LoF
	Select	ListOfFound ("def ",Text,Whole,,,Sort)
	Help	Click to generate list of all functions in this text.

	Key	F3
	Menu	List of classes in this text F3
	Icon	LoF
	Select	ListOfFound ("class ",Text,Whole,,,Sort)
	Help	Click to generate list of all classes in this text.

End

Shortcuts
End
