File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ Contributors
28
28
* Antonio Valentino -- qthelp builder, docstring inheritance
29
29
* Antti Kaihola -- doctest extension (skipif option)
30
30
* Barry Warsaw -- setup command improvements
31
+ * Bart Kamphorst -- warning improvements
31
32
* Ben Egan -- Napoleon improvements & viewcode improvements
32
33
* Benjamin Peterson -- unittests
33
34
* Blaise Laflamme -- pyramid theme
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ Features added
111
111
* #13326: Remove hardcoding from handling :class: `~sphinx.addnodes.productionlist `
112
112
nodes in all writers, to improve flexibility.
113
113
Patch by Adam Turner.
114
+ * #13335: Use ``misc.highlighting_failure `` subtype for Pygments unknown lexers.
115
+ Patch by Bart Kamphorst.
114
116
115
117
Bugs fixed
116
118
----------
Original file line number Diff line number Diff line change @@ -167,7 +167,11 @@ def get_lexer(
167
167
lexer = get_lexer_by_name (lang , ** opts )
168
168
except ClassNotFound :
169
169
logger .warning (
170
- __ ('Pygments lexer name %r is not known' ), lang , location = location
170
+ __ ('Pygments lexer name %r is not known' ),
171
+ lang ,
172
+ location = location ,
173
+ type = 'misc' ,
174
+ subtype = 'higlighting_failure' ,
171
175
)
172
176
lexer = lexer_classes ['none' ](** opts )
173
177
You can’t perform that action at this time.
0 commit comments