Skip to content

Commit 00b9cb0

Browse files
committed
Prepare for release.
* Update CHANGES. * Fix missing `versionadded` declarations. * Fix a few linter issues.
1 parent a0824a4 commit 00b9cb0

8 files changed

Lines changed: 17 additions & 6 deletions

File tree

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Version 2.15.0
1111

1212
* Carbon (#2362, #2365, #2366, #2367, #2368, #2369, #2370)
1313
* Dax (#2335, #2345)
14-
* MediaWiki Wikitext (#2373)
14+
* MediaWiki Wikitext (#2373, #827)
1515
* PostgreSQL Explain (#2398)
1616
* WGSL (WebGPU Shading Language) (#2386)
1717
* X++ (#2339)

pygments/lexers/carbon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CarbonLexer(RegexLexer):
2020
"""
2121
For Carbon source.
2222
23-
.. versionadded:: 2.15.0
23+
.. versionadded:: 2.15
2424
"""
2525
name = 'Carbon'
2626
url = 'https://github.com/carbon-language/carbon-lang'

pygments/lexers/dax.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
__all__ = ['DaxLexer']
1616

17+
1718
class DaxLexer(RegexLexer):
1819
"""
1920
Lexer for Power BI DAX
2021
Referenced from: https://github.com/sql-bi/SyntaxHighlighterBrushDax
2122
23+
.. versionadded:: 2.15
2224
"""
2325
name = 'Dax'
2426
aliases = ['dax']

pygments/lexers/dotnet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,13 @@ def analyse_text(text):
728728

729729
return result
730730

731+
731732
class XppLexer(RegexLexer):
732733

733734
"""
734735
For X++ source code. This is based loosely on the CSharpLexer
735736
736-
.. versionadded:: 2.15.0
737+
.. versionadded:: 2.15
737738
"""
738739

739740
name = 'X++'

pygments/lexers/markup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,12 @@ class WikitextLexer(RegexLexer):
771771
"""
772772
For MediaWiki Wikitext.
773773
774-
Parsing Wikitext is tricky, and results vary between different MediaWiki installations,
775-
so we only highlight common syntaxes (built-in or from popular extensions),
776-
and also assume templates produce no unbalanced syntaxes.
774+
Parsing Wikitext is tricky, and results vary between different MediaWiki
775+
installations, so we only highlight common syntaxes (built-in or from
776+
popular extensions), and also assume templates produce no unbalanced
777+
syntaxes.
778+
779+
.. versionadded:: 2.15
777780
"""
778781
name = 'Wikitext'
779782
url = 'https://www.mediawiki.org/wiki/Wikitext'

pygments/lexers/sql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ class PostgresExplainLexer(RegexLexer):
375375
"""
376376
Handle PostgreSQL EXPLAIN output
377377
378+
.. versionadded:: 2.15
378379
"""
379380

380381
name = 'PostgreSQL EXPLAIN dialect'

pygments/lexers/wgsl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@
2929
# https://www.w3.org/TR/WGSL/#syntax-ident_pattern_token
3030
ident_pattern_token = '([{}][{}]+)|[{}]'.format(uni.xid_start,uni.xid_continue,uni.xid_start)
3131

32+
3233
class WgslLexer(RegexLexer):
3334
"""
3435
Lexer for the WebGPU Shading Language.
36+
37+
.. versionadded:: 2.15
3538
"""
3639
name = 'WebGPU Shading Language'
3740
url = 'https://www.w3.org/TR/WGSL/'

scripts/release-checklist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Release checklist
22
=================
33

44
* Check ``git status``
5+
* Check all lexers have ``versionadded:: `` set correctly.
56
* ``tox``
67
* ``tox -e check``
78
* LATER when configured properly: ``tox -e pylint``

0 commit comments

Comments
 (0)