Commits

Georg Brandl committed e88a089

Fix various "make check" issues.

Comments (0)

Files changed (3)

pygments/filters/__init__.py

             if ttype is current_type:
                 current_value += value
             else:
-                if not current_type is None:
+                if current_type is not None:
                     yield current_type, current_value
                 current_type = ttype
                 current_value = value
-        if not current_type is None:
+        if current_type is not None:
             yield current_type, current_value
 
 

pygments/lexers/_asybuiltins.py

 # -*- coding: utf-8 -*-
 """
-    pygments.lexers._asylist
-    ~~~~~~~~~~~~~~~~~~~~~~~~
+    pygments.lexers._asybuiltins
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-    This file contains the asy-function names and asy-variable names of Asymptote
+    This file contains the asy-function names and asy-variable names of
+    Asymptote.
 
-    Do not edit the ASYFUNCNAME and ASYVARNAME dict by hand.
-    TODO : perl/python script in Asymptote SVN similar to asy-list.pl but only
+    Do not edit the ASYFUNCNAME and ASYVARNAME sets by hand.
+    TODO: perl/python script in Asymptote SVN similar to asy-list.pl but only
     for function and variable names.
 
-
-    :copyright: 2009 by Olivier Guibé
-    :license: BSD, see LICENSE for more details.
+    :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
+    :license: BSD, see LICENSE for details.
 """
 
 ASYFUNCNAME = set([

pygments/lexers/other.py

 
         'directive': [
             # Conditional compilation directives
-            (r'(el)?if(?=[(])', Keyword, 'root'),		
+            (r'(el)?if(?=[(])', Keyword, 'root'),
             (r'(e(lse|ndif))[.]', Keyword, 'root'),
             # Entity directives
             (r'(category|object|protocol)(?=[(])', Keyword, 'entityrelations'),
             (r"[^\|]", Name.Variable),
           ],
         'scenario_sections_on_stack': [
-            (scenario_keywords_regexp, bygroups(Text, Name.Class, Name.Class, Name.Constant), "multiline_descriptions_on_stack"),
+            (scenario_keywords_regexp,
+             bygroups(Text, Name.Class, Name.Class, Name.Constant),
+             "multiline_descriptions_on_stack"),
             ],
         'narrative': [
             include('scenario_sections_on_stack'),
             include('table_vars'),
             (r'@[^@\s]+', Name.Namespace),
             (step_keywords_regexp, bygroups(Text, Keyword)),
-            (feature_keywords_regexp, bygroups(Name.Class, Name.Class, Name.Constant), 'narrative'),
-            (scenario_keywords_regexp, bygroups(Text, Name.Class, Name.Class, Name.Constant), "multiline_descriptions"),
-            (examples_regexp, bygroups(Text, Name.Class, Name.Class, Name.Constant), "scenario_table_description"),
+            (feature_keywords_regexp,
+             bygroups(Name.Class, Name.Class, Name.Constant), 'narrative'),
+            (scenario_keywords_regexp,
+             bygroups(Text, Name.Class, Name.Class, Name.Constant),
+             "multiline_descriptions"),
+            (examples_regexp,
+             bygroups(Text, Name.Class, Name.Class, Name.Constant),
+             "scenario_table_description"),
             (r'(\s|.)', Text),
         ]
     }
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.