summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/compiled.py2
-rw-r--r--scripts/vim2pygments.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 7a80ddcb..a2dac215 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -461,7 +461,7 @@ class DelphiLexer(Lexer):
self.builtins = set()
for unit in get_list_opt(options, 'units', self.BUILTIN_UNITS.keys()):
self.builtins.update(self.BUILTIN_UNITS[unit])
-
+
def get_tokens_unprocessed(self, text):
scanner = Scanner(text, re.DOTALL | re.MULTILINE | re.IGNORECASE)
stack = ['initial']
diff --git a/scripts/vim2pygments.py b/scripts/vim2pygments.py
index 57d506da..80ca2386 100644
--- a/scripts/vim2pygments.py
+++ b/scripts/vim2pygments.py
@@ -787,7 +787,7 @@ def find_colors(code):
colors = {'Normal': {}}
bg_color = None
def set(attrib, value):
- if not token in colors:
+ if token not in colors:
colors[token] = {}
if key.startswith('gui') or attrib not in colors[token]:
colors[token][attrib] = value