summaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py3/pygments/lexers/sql.py
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2026-05-22 23:54:15 +0300
committerrobot-piglet <[email protected]>2026-05-23 00:31:16 +0300
commit88de1fde2ead7a8a664f403cf8c6a29cc3f718eb (patch)
treea06fe19732b21ca5bf728b6e091f06a9aa8a59b0 /contrib/python/Pygments/py3/pygments/lexers/sql.py
parenta4934b97e2fbc92ceda3743e051dff0e1d6e2708 (diff)
Intermediate changes
commit_hash:a0d2bdedf870db96a3096f257f9ad580475d6d26
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/sql.py')
-rw-r--r--contrib/python/Pygments/py3/pygments/lexers/sql.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/sql.py b/contrib/python/Pygments/py3/pygments/lexers/sql.py
index d3e6f17f394..1d3458e9aef 100644
--- a/contrib/python/Pygments/py3/pygments/lexers/sql.py
+++ b/contrib/python/Pygments/py3/pygments/lexers/sql.py
@@ -36,7 +36,7 @@
The ``tests/examplefiles`` contains a few test files with data to be
parsed by these lexers.
- :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -390,7 +390,7 @@ class PostgresExplainLexer(RegexLexer):
tokens = {
'root': [
- (r'(:|\(|\)|ms|kB|->|\.\.|\,|\/)', Punctuation),
+ (r'(:|\(|\)|ms|kB|->|\.\.|\,|\/|=|%)', Punctuation),
(r'(\s+)', Whitespace),
# This match estimated cost and effectively measured counters with ANALYZE
@@ -399,9 +399,11 @@ class PostgresExplainLexer(RegexLexer):
(r'(actual)( )(=?)', bygroups(Name.Class, Whitespace, Punctuation), 'instrumentation'),
# Misc keywords
- (words(('actual', 'Memory Usage', 'Disk Usage', 'Memory', 'Buckets', 'Batches',
- 'originally', 'row', 'rows', 'Hits', 'Misses',
- 'Evictions', 'Overflows', 'Planned Partitions'), suffix=r'\b'),
+ (words(('actual', 'Memory Usage', 'Disk Usage', 'Memory', 'Buckets',
+ 'Batches', 'originally', 'row', 'rows', 'Hits', 'Misses',
+ 'Evictions', 'Overflows', 'Planned Partitions', 'Estimates',
+ 'capacity', 'distinct keys', 'lookups', 'hit percent',
+ 'Index Searches', 'Storage', 'Disk Maximum Storage'), suffix=r'\b'),
Comment.Single),
(r'(hit|read|dirtied|written|write|time|calls)(=)', bygroups(Comment.Single, Operator)),
@@ -421,7 +423,7 @@ class PostgresExplainLexer(RegexLexer):
'TID Cond', 'Run Condition', 'Order By', 'Function Call',
'Table Function Call', 'Inner Unique', 'Params Evaluated',
'Single Copy', 'Sampling', 'One-Time Filter', 'Output',
- 'Relations', 'Remote SQL'), suffix=r'\b'),
+ 'Relations', 'Remote SQL', 'Disabled'), suffix=r'\b'),
Comment.Preproc, 'predicate'),
# Special keyword to handle ON CONFLICT