diff options
author | Anteru <bitbucket@ca.sh13.net> | 2019-04-30 15:47:45 +0000 |
---|---|---|
committer | Anteru <bitbucket@ca.sh13.net> | 2019-04-30 15:47:45 +0000 |
commit | 83e159f05ec8dae7d6e52140b23b363d4c3b18f2 (patch) | |
tree | 1fa06af4657f37b48cc798a662a0986fb004ba52 /pygments/lexers/monte.py | |
parent | 836d98cc163ea0dcb1b60ef1e536fdacb351d78a (diff) | |
parent | a0fc52727aaed41c8e09c87996de842117872afb (diff) | |
download | pygments-83e159f05ec8dae7d6e52140b23b363d4c3b18f2.tar.gz |
Merged in Praetonus/pygments-main/pony (pull request #627)
Add lexer for the Pony language
Diffstat (limited to 'pygments/lexers/monte.py')
-rw-r--r-- | pygments/lexers/monte.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/monte.py b/pygments/lexers/monte.py index aa5c75f7..ed6e20f8 100644 --- a/pygments/lexers/monte.py +++ b/pygments/lexers/monte.py @@ -5,7 +5,7 @@ Lexer for the Monte programming language. - :copyright: Copyright 2016 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -43,8 +43,8 @@ _operators = [ _escape_pattern = ( r'(?:\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|' r'\\["\'\\bftnr])') -#_char = _escape_chars + [('.', String.Char)] -_identifier = '[_a-zA-Z][_0-9a-zA-Z]*' +# _char = _escape_chars + [('.', String.Char)] +_identifier = r'[_a-zA-Z]\w*' _constants = [ # Void constants @@ -75,6 +75,7 @@ _safeScope = [ 'makeBrandPair', 'makeLazySlot', 'safeScope', 'simple__quasiParser', ] + class MonteLexer(RegexLexer): """ Lexer for the `Monte <https://monte.readthedocs.io/>`_ programming language. |