Patch #891 2006-03-03 18:33

sethjackson

Python lexer
Download
891-Python_lexer.patch (13.6 KB)
Category
Lexer
Status
Accepted
Close date
2006-03-07 09:08
Assigned to
 
Index: src/sdk/resources/lexers/lexer_python.xml
===================================================================
--- src/sdk/resources/lexers/lexer_python.xml    (revision 2143)
+++ src/sdk/resources/lexers/lexer_python.xml    (working copy)
@@ -17,20 +17,20 @@
                 <Style name="Number"
                         index="2"
                         fg="240,0,240"/>
-                <Style name="Double Quote String"
+                <Style name="Double quote string"
                         index="3"
                         fg="0,0,255"/>
-                <Style name="Single Quote String"
+                <Style name="Single quote string"
                         index="4"
                         fg="224,160,0"/>
                 <Style name="Keyword"
                         index="5"
                         fg="0,0,160"
                         bold="1"/>
-                <Style name="Triple Single Quote String"
+                <Style name="Triple single quote string"
                         index="6"
                         fg="128,0,0"/>
-                <Style name="Triple Double Quote String"
+                <Style name="Triple double quote string"
                         index="7"
                         fg="128,0,128"/>
                 <Style name="Class name"
@@ -51,100 +51,100 @@
                         bold="1"/>
                 <Style name="String EOL"
                         index="13"/>
-                <Style name="User Keyword"
+                <Style name="User keyword"
                         index="14"/>
                 <Style name="Decorator"
                         index="15"
                         fg="0,128,128"/>
                 <Keywords>
-                        <Language index="0"
-                                value="and assert break class continue def del elif else except
-                                       exec finally for from global if import in is lambda None
-                                       not or pass print raise return try while yield
+                        <!-- Keywords -->
+                        <Set index="0"
+                            value="and assert break class continue def del elif else except
+                                   exec finally for from global if import in is lambda None
+                                   not or pass print raise return try while yield
 
-                                       __import__ abs 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 type unichr unicode vars xrange
-                                       zip
+                                   __import__ abs 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 type unichr unicode vars xrange
+                                   zip
 
-                                       apply buffer coerce intern
+                                   apply buffer coerce intern
 
-                                       __dict__ Ellipsis False True NotImplemented
-                                       __class__ __bases__ __name__
+                                   __dict__ Ellipsis False True NotImplemented
+                                   __class__ __bases__ __name__
 
-                                       exception Exception StandardError ArithmeticError
-                                       LookupError EnvironmentError AssertionError
-                                       AttributeError EOFError FloatingPointError IOError
-                                       ImportError IndexError KeyError KeyboardInterrupt
-                                       MemoryError NameError NotImplementedError OSError
-                                       OverflowError ReferenceError RuntimeError
-                                       StopIteration SyntaxErr
download for full patch...
mandrav 2006-03-06 17:24

Patch fails to apply in current revision...

sethjackson 2006-03-06 18:25

I dunno why. Try this one.