Commits

Anonymous committed d555574

[svn] Fix one TODO item.

Comments (0)

Files changed (3)

     * mysql/postgresql/sqlite
     * tcl
 
-- tell the C(++) and PHP lexers how to differ between Operators and text.
-
-- add support for function name highlighting to c++ lexer
-
-- readd property support for C# lexer
-
 
 for 0.7
 -------
 
 - moin parser
 
+- readd property support for C# lexer? that is, find a regex that doesn't
+  backtrack to death...
+
+- add support for function name highlighting to c++ lexer
+
 - pygmentize presets?
 
 - more unit tests (pygmentize, all formatters comprehensively)

pygments/lexer.py

 
     The result is a combined token stream.
 
-    XXX: The indices yielded by this function are not correct!
+    FIXME: The indices yielded by this function are not correct!
     """
     insertions = iter(insertions)
     try:

pygments/lexers/compiled.py

             (r'0[0-7]+[Ll]?', Number.Oct),
             (r'(\d+\.\d*|\.\d+)', Number.Float),
             (r'\d+', Number.Integer),
-            (r'[~!%^&*()+=|\[\]:,.<>/?-]', Punctuation), # missing: Operators
+            (r'[~!%^&*+=|?:<>/-]', Operator),
+            (r'[()\[\],.]', Punctuation),
             (r'(auto|break|case|const|continue|default|do|else|enum|extern|'
              r'for|goto|if|register|restricted|return|sizeof|static|struct|'
              r'switch|typedef|union|volatile|virtual|while)\b', Keyword),
             (r'0[0-7]+[Ll]?', Number.Oct),
             (r'(\d+\.\d*|\.\d+)', Number.Float),
             (r'\d+', Number.Integer),
-            (r'[~!%^&*()+=|\[\]:;,.<>/?-]', Punctuation),
+            (r'[~!%^&*+=|?:<>/-]', Operator),
+            (r'[()\[\],.]', Punctuation),
             (r'(asm|auto|break|case|catch|const|const_cast|continue|'
              r'default|delete|do|dynamic_cast|else|enum|explicit|export|'
              r'extern|for|friend|goto|if|mutable|namespace|new|operator|'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.