diff options
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | doc/languages.rst | 2 | ||||
-rw-r--r-- | pygments/lexers/pony.py | 10 |
3 files changed, 10 insertions, 4 deletions
@@ -13,10 +13,12 @@ Version 2.4.0 - Added lexers: * Augeas (PR#807) + * BBC Basic (PR#806) * Charm++ CI (PR#788) * DASM16 (PR#807) * FloScript (PR#750) * Hspec (PR#790) + * Pony (PR#627) * SGF (PR#780) * Slash (PR#807) * Slurm (PR#760) diff --git a/doc/languages.rst b/doc/languages.rst index d2508b07..d96b1ba8 100644 --- a/doc/languages.rst +++ b/doc/languages.rst @@ -16,6 +16,7 @@ Programming languages * Asymptote * `Augeas <http://augeas.net>`_ * Awk +* BBC Basic * Befunge * Boo * BrainFuck @@ -72,6 +73,7 @@ Programming languages * OCaml * PHP * `Perl 5 <http://perl.org>`_ and `Perl 6 <https://perl6.org>`_ +* `Pony <https://www.ponylang.io/>`_ * PovRay * PostScript * PowerShell diff --git a/pygments/lexers/pony.py b/pygments/lexers/pony.py index 486e404b..13239047 100644 --- a/pygments/lexers/pony.py +++ b/pygments/lexers/pony.py @@ -2,7 +2,7 @@ """ pygments.lexers.pony ~~~~~~~~~~~~~~~~~~~~ - + Lexers for Pony and related languages. :copyright: Copyright 2006-2016 by the Pygments team, see AUTHORS. @@ -19,14 +19,16 @@ __all__ = ['PonyLexer'] class PonyLexer(RegexLexer): """ For Pony source code. + + .. versionadded:: 2.4 """ - + name = 'Pony' aliases = ['pony'] filenames = ['*.pony'] - + _caps = r'(iso|trn|ref|val|box|tag)' - + tokens = { 'root': [ (r'\n', Text), |