Skip to content

Commit eaca690

Browse files
authored
Add lexer for MediaWiki Wikitext (#2373)
1 parent 0e9c87b commit eaca690

23 files changed

+121390
-1
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -265,5 +265,6 @@ Other contributors, listed alphabetically, are:
265265
* Martin Fischer -- WCAG contrast testing
266266
* Marc Auberer -- Spice lexer
267267
* Amr Hesham -- Carbon lexer
268+
* diskdance -- Wikitext lexer
268269

269270
Many thanks for all contributions!

pygments/lexers/_mapping.py

+1
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
'WebIDLLexer': ('pygments.lexers.webidl', 'Web IDL', ('webidl',), ('*.webidl',), ()),
534534
'WgslLexer': ('pygments.lexers.wgsl', 'WebGPU Shading Language', ('wgsl',), ('*.wgsl',), ('text/wgsl',)),
535535
'WhileyLexer': ('pygments.lexers.whiley', 'Whiley', ('whiley',), ('*.whiley',), ('text/x-whiley',)),
536+
'WikitextLexer': ('pygments.lexers.markup', 'Wikitext', ('wikitext', 'mediawiki'), (), ('text/x-wiki',)),
536537
'WoWTocLexer': ('pygments.lexers.wowtoc', 'World of Warcraft TOC', ('wowtoc',), ('*.toc',), ()),
537538
'WrenLexer': ('pygments.lexers.wren', 'Wren', ('wren',), ('*.wren',), ()),
538539
'X10Lexer': ('pygments.lexers.x10', 'X10', ('x10', 'xten'), ('*.x10',), ('text/x-x10',)),

pygments/lexers/markup.py

+736-1
Large diffs are not rendered by default.

tests/examplefiles/wikitext/article_france.wikitext

+973
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)