I want to add another keyword group to the Python scheme so that there is one for keywords and one for built-in functions and have them highlighted different like the are in IDLE.
This was my failed attempt (Keywords work but built-ins highlight as if they're unclosed strings):
<?xml version="1.0" encoding="UTF-8"?>
<Scheme>
<keyword-classes>
<keyword-class name="python-keywords">
and as assert break class continue def del elif
else except exec finally for from global if import in is lambda
not or pass print raise return try while yield
</keyword-class>
<keyword-class name="python-builtins">
None True False NotImplemented Ellipsis
__import__ abs all any basestring bool callable chr classmethod cmp compile complex
delattr dict dir divmod enumerate eval execfile file filter float frozenset getattr
globals hasattr hash help hex id input int isinstance issubclass iter len list
locals long map max min object oct open ord pow property range raw_input reduce
reload repr reversed round set setattr slice sorted staticmethod str sum super
tuple type unichr unicode vars xrange zip
apply buffer coerce intern
BaseException SystemExit KeyboardInterrupt Exception GeneratorExit StopIteration
StandardError ArithmeticError FloatingPointError OverflowError ZeroDivisionError AssertionError
AttributeError EnvironmentError IOError OSError WindowsError VMSError EOFError ImportError
LookupError IndexError KeyError MemoryError NameError UnboundLocalError ReferenceError
RuntimeError NotImplementedError SyntaxError IndentationError TabError SystemError TypeError
ValueError UnicodeError UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError
Warning DeprecationWarning PendingDeprecationWarning RuntimeWarning SyntaxWarning
UserWarning FutureWarning ImportWarning UnicodeWarning
</keyword-class>
</keyword-classes>
<language name="python" title="Python" folding="true" foldcomments="true" foldcompact="false">
<lexer name="python" />
<comments line="#" />
<property name="tab.timmy.whinge.level" value="1"/>
<use-styles>
<style name="Default" key="32" />
<style name="Whitespace" key="0" class="whitespace" />
<style name="Comment" key="1" class="comment"/>
<style name="Number" key="2" class="number"/>
<style name="String" key="3" class="string"/>
<style name="Single-Quoted String" key="4" class="string"/>
<style name="Keywords" key="5" class="keyword"/>
<style name="Builtins" key="6" class="keyword"/>
<style name="Triple Quotes" key="7" fore="7f0000"/>
<style name="Triple Double Quotes" key="8" fore="7f0000"/>
<style name="Class name" key="9" class="class"/>
<style name="Function or method name" key="10" class="function"/>
<style name="Operators" key="11" bold="true"/>
<style name="Identifiers" key="12"/>
<style name="Comment block" key="13" fore="7f7f7f" />
<style name="Unclosed string" key="14" class="string" back="e0c0e0" eolfilled="true" />
<style name="Highlighted Identifiers" key="15" fore="407090" />
<style name="Decorators" key="16" fore="805080" />
</use-styles>
<use-keywords>
<keyword key="0" name="Keywords" class="python-keywords"/>
<keyword key="1" name="Builtins" class="python-builtins"/>
</use-keywords>
</language>
</Scheme>