diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-05-20 07:58:40 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-05-20 08:05:00 +0300 |
commit | bcd5bcc390793791d293d386b2ebefbe683fb4e1 (patch) | |
tree | c93e3b8c847237e7e7626f4a07f1b657bb34f04d /contrib/python/Pygments/py3/pygments/lexers/carbon.py | |
parent | 1a9f1508fe9c8c5927ffebf33197a6108e70501d (diff) | |
download | ydb-bcd5bcc390793791d293d386b2ebefbe683fb4e1.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/carbon.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/lexers/carbon.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/carbon.py b/contrib/python/Pygments/py3/pygments/lexers/carbon.py index 758e8af361..c4e71d9c74 100644 --- a/contrib/python/Pygments/py3/pygments/lexers/carbon.py +++ b/contrib/python/Pygments/py3/pygments/lexers/carbon.py @@ -4,12 +4,12 @@ Lexers for the Carbon programming language. - :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re -from pygments.lexer import RegexLexer, bygroups, words +from pygments.lexer import RegexLexer, words from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ Number, Punctuation, Whitespace @@ -19,14 +19,13 @@ __all__ = ['CarbonLexer'] class CarbonLexer(RegexLexer): """ For Carbon source. - - .. versionadded:: 2.15 """ name = 'Carbon' url = 'https://github.com/carbon-language/carbon-lang' filenames = ['*.carbon'] aliases = ['carbon'] mimetypes = ['text/x-carbon'] + version_added = '2.15' flags = re.MULTILINE | re.DOTALL |