diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2023-04-10 14:46:27 +0200 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2023-04-10 14:46:27 +0200 |
commit | 00b9cb022cc9c05784c43c11bd7f73e64008b347 (patch) | |
tree | 4f43a74c6d6ed114bf2d4e1091992b1d5ef459f5 | |
parent | a0824a45f0bd6c45528fa16132f09dd3570a8234 (diff) | |
download | pygments-git-00b9cb022cc9c05784c43c11bd7f73e64008b347.tar.gz |
Prepare for release.
* Update CHANGES.
* Fix missing `versionadded` declarations.
* Fix a few linter issues.
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | pygments/lexers/carbon.py | 2 | ||||
-rw-r--r-- | pygments/lexers/dax.py | 2 | ||||
-rw-r--r-- | pygments/lexers/dotnet.py | 3 | ||||
-rw-r--r-- | pygments/lexers/markup.py | 9 | ||||
-rw-r--r-- | pygments/lexers/sql.py | 1 | ||||
-rw-r--r-- | pygments/lexers/wgsl.py | 3 | ||||
-rw-r--r-- | scripts/release-checklist | 1 |
8 files changed, 17 insertions, 6 deletions
@@ -11,7 +11,7 @@ Version 2.15.0 * Carbon (#2362, #2365, #2366, #2367, #2368, #2369, #2370) * Dax (#2335, #2345) - * MediaWiki Wikitext (#2373) + * MediaWiki Wikitext (#2373, #827) * PostgreSQL Explain (#2398) * WGSL (WebGPU Shading Language) (#2386) * X++ (#2339) diff --git a/pygments/lexers/carbon.py b/pygments/lexers/carbon.py index 29745dbf..b20ad645 100644 --- a/pygments/lexers/carbon.py +++ b/pygments/lexers/carbon.py @@ -20,7 +20,7 @@ class CarbonLexer(RegexLexer): """ For Carbon source. - .. versionadded:: 2.15.0 + .. versionadded:: 2.15 """ name = 'Carbon' url = 'https://github.com/carbon-language/carbon-lang' diff --git a/pygments/lexers/dax.py b/pygments/lexers/dax.py index 9931e4f5..39618c3b 100644 --- a/pygments/lexers/dax.py +++ b/pygments/lexers/dax.py @@ -14,11 +14,13 @@ from pygments.token import Comment, Punctuation, Whitespace,\ __all__ = ['DaxLexer'] + class DaxLexer(RegexLexer): """ Lexer for Power BI DAX Referenced from: https://github.com/sql-bi/SyntaxHighlighterBrushDax + .. versionadded:: 2.15 """ name = 'Dax' aliases = ['dax'] diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py index d5e7795c..5c488dd9 100644 --- a/pygments/lexers/dotnet.py +++ b/pygments/lexers/dotnet.py @@ -728,12 +728,13 @@ class FSharpLexer(RegexLexer): return result + class XppLexer(RegexLexer): """ For X++ source code. This is based loosely on the CSharpLexer - .. versionadded:: 2.15.0 + .. versionadded:: 2.15 """ name = 'X++' diff --git a/pygments/lexers/markup.py b/pygments/lexers/markup.py index ec7da2e7..727ba84a 100644 --- a/pygments/lexers/markup.py +++ b/pygments/lexers/markup.py @@ -771,9 +771,12 @@ class WikitextLexer(RegexLexer): """ For MediaWiki Wikitext. - Parsing Wikitext is tricky, and results vary between different MediaWiki installations, - so we only highlight common syntaxes (built-in or from popular extensions), - and also assume templates produce no unbalanced syntaxes. + Parsing Wikitext is tricky, and results vary between different MediaWiki + installations, so we only highlight common syntaxes (built-in or from + popular extensions), and also assume templates produce no unbalanced + syntaxes. + + .. versionadded:: 2.15 """ name = 'Wikitext' url = 'https://www.mediawiki.org/wiki/Wikitext' diff --git a/pygments/lexers/sql.py b/pygments/lexers/sql.py index ace512be..c86f5961 100644 --- a/pygments/lexers/sql.py +++ b/pygments/lexers/sql.py @@ -375,6 +375,7 @@ class PostgresExplainLexer(RegexLexer): """ Handle PostgreSQL EXPLAIN output + .. versionadded:: 2.15 """ name = 'PostgreSQL EXPLAIN dialect' diff --git a/pygments/lexers/wgsl.py b/pygments/lexers/wgsl.py index 85720528..f2334215 100644 --- a/pygments/lexers/wgsl.py +++ b/pygments/lexers/wgsl.py @@ -29,9 +29,12 @@ LineEndRE = '[' + "".join(LineEndCodePoints) + ']' # https://www.w3.org/TR/WGSL/#syntax-ident_pattern_token ident_pattern_token = '([{}][{}]+)|[{}]'.format(uni.xid_start,uni.xid_continue,uni.xid_start) + class WgslLexer(RegexLexer): """ Lexer for the WebGPU Shading Language. + + .. versionadded:: 2.15 """ name = 'WebGPU Shading Language' url = 'https://www.w3.org/TR/WGSL/' diff --git a/scripts/release-checklist b/scripts/release-checklist index 462250f1..fc384c0e 100644 --- a/scripts/release-checklist +++ b/scripts/release-checklist @@ -2,6 +2,7 @@ Release checklist ================= * Check ``git status`` +* Check all lexers have ``versionadded:: `` set correctly. * ``tox`` * ``tox -e check`` * LATER when configured properly: ``tox -e pylint`` |