Skip to content

Commit

Permalink
Add lexer for MediaWiki Wikitext (#2373)
Browse files Browse the repository at this point in the history
  • Loading branch information
diskdance authored Apr 5, 2023
1 parent 0e9c87b commit eaca690
Show file tree
Hide file tree
Showing 23 changed files with 121,390 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,6 @@ Other contributors, listed alphabetically, are:
* Martin Fischer -- WCAG contrast testing
* Marc Auberer -- Spice lexer
* Amr Hesham -- Carbon lexer
* diskdance -- Wikitext lexer

Many thanks for all contributions!
1 change: 1 addition & 0 deletions pygments/lexers/_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@
'WebIDLLexer': ('pygments.lexers.webidl', 'Web IDL', ('webidl',), ('*.webidl',), ()),
'WgslLexer': ('pygments.lexers.wgsl', 'WebGPU Shading Language', ('wgsl',), ('*.wgsl',), ('text/wgsl',)),
'WhileyLexer': ('pygments.lexers.whiley', 'Whiley', ('whiley',), ('*.whiley',), ('text/x-whiley',)),
'WikitextLexer': ('pygments.lexers.markup', 'Wikitext', ('wikitext', 'mediawiki'), (), ('text/x-wiki',)),
'WoWTocLexer': ('pygments.lexers.wowtoc', 'World of Warcraft TOC', ('wowtoc',), ('*.toc',), ()),
'WrenLexer': ('pygments.lexers.wren', 'Wren', ('wren',), ('*.wren',), ()),
'X10Lexer': ('pygments.lexers.x10', 'X10', ('x10', 'xten'), ('*.x10',), ('text/x-x10',)),
Expand Down
737 changes: 736 additions & 1 deletion pygments/lexers/markup.py

Large diffs are not rendered by default.

973 changes: 973 additions & 0 deletions tests/examplefiles/wikitext/article_france.wikitext

Large diffs are not rendered by default.

Loading

0 comments on commit eaca690

Please sign in to comment.