Skip to content

Commit 1caade1

Browse files
committed
Release preparation for 2.16.
1 parent 15e61f8 commit 1caade1

11 files changed

Lines changed: 67 additions & 60 deletions

File tree

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pull request numbers before 2.4.2 are not linked as they refer to the now defunc
55

66
Version 2.16.0
77
--------------
8-
(unreleased)
8+
(released August 6th, 2023)
99

1010
- New lexers:
1111

pygments/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"""
2727
from io import StringIO, BytesIO
2828

29-
__version__ = '2.15.1'
29+
__version__ = '2.16.0'
3030
__docformat__ = 'restructuredtext'
3131

3232
__all__ = ['lex', 'format', 'highlight']

pygments/lexers/asn1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Asn1Lexer(RegexLexer):
126126

127127
name = 'ASN.1'
128128
aliases = ['asn1']
129-
filenames = [ "*.asn1" ]
129+
filenames = ["*.asn1"]
130130
url = "https://www.itu.int/ITU-T/studygroups/com17/languages/X.680-0207.pdf"
131131

132132
tokens = {

pygments/lexers/bqn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
class BQNLexer(RegexLexer):
1919
"""
2020
A simple BQN lexer.
21+
22+
.. versionadded:: 2.16
2123
"""
2224
name = 'BQN'
2325
url = 'https://mlochbaum.github.io/BQN/index.html'

pygments/lexers/configs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ def analyse_text(text):
6868
return False
6969

7070

71-
7271
class DesktopLexer(RegexLexer):
7372
"""
7473
Lexer for .desktop files.
74+
75+
.. versionadded:: 2.16
7576
"""
7677

7778
name = 'Desktop file'
@@ -97,10 +98,11 @@ def analyse_text(text):
9798
return 0.0
9899

99100

100-
101101
class SystemdLexer(RegexLexer):
102102
"""
103103
Lexer for systemd unit files.
104+
105+
.. versionadded:: 2.16
104106
"""
105107

106108
name = 'Systemd'

pygments/lexers/graphql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class GraphQLLexer(RegexLexer):
5858
"""
5959
Lexer for GraphQL syntax
6060
61-
.. versionadded:: 2.15.1
61+
.. versionadded:: 2.16
6262
"""
6363
name = "GraphQL"
6464
aliases = ["graphql"]

pygments/lexers/openscad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
class OpenScadLexer(RegexLexer):
1818
"""For openSCAD code.
19-
20-
.. versionadded:: 2.16.0
19+
20+
.. versionadded:: 2.16
2121
"""
2222
name = "OpenSCAD"
2323
url = "https://openscad.org/"

pygments/lexers/ptx.py

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"""
1010

1111
from pygments.lexer import RegexLexer, include, words
12-
from pygments.token import Comment, Keyword, Name, String, Number, Punctuation, \
13-
Whitespace, Operator
12+
from pygments.token import Comment, Keyword, Name, String, Number, \
13+
Punctuation, Whitespace, Operator
1414

1515
__all__ = ["PtxLexer"]
1616

@@ -20,7 +20,7 @@ class PtxLexer(RegexLexer):
2020
For NVIDIA `PTX <https://docs.nvidia.com/cuda/parallel-thread-execution/>`_
2121
source.
2222
23-
.. versionadded:: 2.15
23+
.. versionadded:: 2.16
2424
"""
2525
name = 'PTX'
2626
url = "https://docs.nvidia.com/cuda/parallel-thread-execution/"
@@ -65,31 +65,31 @@ class PtxLexer(RegexLexer):
6565
(words((
6666
'abs', 'discard', 'min', 'shf', 'vadd',
6767
'activemask', 'div', 'mma', 'shfl', 'vadd2',
68-
'add','dp2a','mov','shl','vadd4',
69-
'addc','dp4a','movmatrix','shr','vavrg2',
70-
'alloca','elect','mul','sin','vavrg4',
71-
'and','ex2','mul24','slct','vmad',
72-
'applypriority','exit','multimem','sqrt','vmax',
73-
'atom','fence','nanosleep','st','vmax2',
74-
'bar','fma','neg','stackrestore','vmax4',
75-
'barrier','fns','not','stacksave','vmin',
76-
'bfe','getctarank','or','stmatrix','vmin2',
77-
'bfi','griddepcontrol','pmevent','sub','vmin4',
78-
'bfind','isspacep','popc','subc','vote',
79-
'bmsk','istypep','prefetch','suld','vset',
80-
'bra','ld', 'prefetchu','suq','vset2',
81-
'brev','ldmatrix','prmt','sured','vset4',
82-
'brkpt','ldu','rcp','sust','vshl',
83-
'brx','lg2','red','szext','vshr',
84-
'call','lop3','redux','tanh','vsub',
85-
'clz','mad', 'rem','testp','vsub2',
86-
'cnot','mad24','ret','tex','vsub4',
87-
'copysign','madc','rsqrt','tld4','wgmma',
88-
'cos','mapa','sad','trap','wmma',
89-
'cp','match','selp','txq','xor',
90-
'createpolicy','max','set','vabsdiff','cvt',
91-
'mbarrier','setmaxnreg','vabsdiff2','cvta',
92-
'membar','setp','vabsdiff4')), Keyword),
68+
'add', 'dp2a', 'mov', 'shl', 'vadd4',
69+
'addc', 'dp4a', 'movmatrix', 'shr', 'vavrg2',
70+
'alloca', 'elect', 'mul', 'sin', 'vavrg4',
71+
'and', 'ex2', 'mul24', 'slct', 'vmad',
72+
'applypriority', 'exit', 'multimem', 'sqrt', 'vmax',
73+
'atom', 'fence', 'nanosleep', 'st', 'vmax2',
74+
'bar', 'fma', 'neg', 'stackrestore', 'vmax4',
75+
'barrier', 'fns', 'not', 'stacksave', 'vmin',
76+
'bfe', 'getctarank', 'or', 'stmatrix', 'vmin2',
77+
'bfi', 'griddepcontrol', 'pmevent', 'sub', 'vmin4',
78+
'bfind', 'isspacep', 'popc', 'subc', 'vote',
79+
'bmsk', 'istypep', 'prefetch', 'suld', 'vset',
80+
'bra', 'ld', 'prefetchu', 'suq', 'vset2',
81+
'brev', 'ldmatrix', 'prmt', 'sured', 'vset4',
82+
'brkpt', 'ldu', 'rcp', 'sust', 'vshl',
83+
'brx', 'lg2', 'red', 'szext', 'vshr',
84+
'call', 'lop3', 'redux', 'tanh', 'vsub',
85+
'clz', 'mad', 'rem', 'testp', 'vsub2',
86+
'cnot', 'mad24', 'ret', 'tex', 'vsub4',
87+
'copysign', 'madc', 'rsqrt', 'tld4', 'wgmma',
88+
'cos', 'mapa', 'sad', 'trap', 'wmma',
89+
'cp', 'match', 'selp', 'txq', 'xor',
90+
'createpolicy', 'max', 'set', 'vabsdiff', 'cvt',
91+
'mbarrier', 'setmaxnreg', 'vabsdiff2', 'cvta',
92+
'membar', 'setp', 'vabsdiff4')), Keyword),
9393
# State Spaces and Suffixes
9494
(words((
9595
'reg', '.sreg', '.const', '.global',
@@ -98,15 +98,15 @@ class PtxLexer(RegexLexer):
9898
)), Keyword.Pseudo),
9999
# PTX Directives
100100
(words((
101-
'.address_size','.explicitcluster','.maxnreg','.section',
102-
'.alias', '.extern','.maxntid','.shared',
103-
'.align','.file','.minnctapersm','.sreg',
104-
'.branchtargets','.func','.noreturn','.target',
105-
'.callprototype','.global','.param','.tex',
106-
'.calltargets','.loc','.pragma','.version',
107-
'.common','.local','.reg','.visible',
108-
'.const','.maxclusterrank','.reqnctapercluster','.weak',
109-
'.entry','.maxnctapersm','.reqntid')), Keyword.Reserved),
101+
'.address_size', '.explicitcluster', '.maxnreg', '.section',
102+
'.alias', '.extern', '.maxntid', '.shared',
103+
'.align', '.file', '.minnctapersm', '.sreg',
104+
'.branchtargets', '.func', '.noreturn', '.target',
105+
'.callprototype', '.global', '.param', '.tex',
106+
'.calltargets', '.loc', '.pragma', '.version',
107+
'.common', '.local', '.reg', '.visible',
108+
'.const', '.maxclusterrank', '.reqnctapercluster', '.weak',
109+
'.entry', '.maxnctapersm', '.reqntid')), Keyword.Reserved),
110110
# Fundamental Types
111111
(words((
112112
'.s8', '.s16', '.s32', '.s64',

pygments/lexers/tls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"""
1010
import re
1111

12-
from pygments.lexer import RegexLexer, bygroups, words
13-
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
12+
from pygments.lexer import RegexLexer, words
13+
from pygments.token import Comment, Operator, Keyword, Name, String, \
1414
Number, Punctuation, Whitespace
1515

1616
__all__ = ['TlsLexer']

pygments/lexers/verifpal.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
:license: BSD, see LICENSE for details.
99
"""
1010

11-
import re
12-
13-
from pygments.lexer import RegexLexer, include, words, bygroups, default
14-
from pygments.token import Text, Comment, Operator, Keyword, Name, String, Punctuation, Whitespace
11+
from pygments.lexer import RegexLexer, words, bygroups, default
12+
from pygments.token import Comment, Keyword, Name, String, Punctuation, \
13+
Whitespace
1514

1615
__all__ = ['VerifpalLexer']
1716

@@ -20,7 +19,7 @@ class VerifpalLexer(RegexLexer):
2019
"""
2120
For Verifpal code.
2221
23-
.. versionadded:: 2.16.0
22+
.. versionadded:: 2.16
2423
"""
2524

2625
name = 'Verifpal'

0 commit comments

Comments
 (0)