summaryrefslogtreecommitdiff
path: root/pygments/lexers/sql.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-19 22:15:24 +0200
committerGeorg Brandl <georg@python.org>2014-09-19 22:15:24 +0200
commitc45439c1ef32348ed9476c441d81adbb84e71ec4 (patch)
tree0c19e4002fc63614266000fe917553c0a94d4faf /pygments/lexers/sql.py
parent6688456dd0d2e4e877eaf17fa604df3a9aca689a (diff)
downloadpygments-c45439c1ef32348ed9476c441d81adbb84e71ec4.tar.gz
Make all keyword lists in special modules into tuples.
Tuples of strings are stored as prebuild constants in the .pyc file instead of having to build a list element by element at runtime.
Diffstat (limited to 'pygments/lexers/sql.py')
-rw-r--r--pygments/lexers/sql.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/sql.py b/pygments/lexers/sql.py
index 5070d487..9c73fcf3 100644
--- a/pygments/lexers/sql.py
+++ b/pygments/lexers/sql.py
@@ -138,9 +138,9 @@ class PostgresLexer(PostgresBase, RegexLexer):
(r'\s+', Text),
(r'--.*?\n', Comment.Single),
(r'/\*', Comment.Multiline, 'multiline-comments'),
- (r'(' + '|'.join([s.replace(" ", "\s+")
- for s in DATATYPES + PSEUDO_TYPES])
- + r')\b', Name.Builtin),
+ (r'(' + '|'.join(s.replace(" ", "\s+")
+ for s in DATATYPES + PSEUDO_TYPES)
+ + r')\b', Name.Builtin),
(r'(' + '|'.join(KEYWORDS) + r')\b', Keyword),
(r'[+*/<>=~!@#%^&|`?-]+', Operator),
(r'::', Operator), # cast