diff options
author | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
---|---|---|
committer | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/Pygments/py3/pygments/lexers/gcodelexer.py | |
parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
download | ydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz |
fix ya.make
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/gcodelexer.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/lexers/gcodelexer.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/gcodelexer.py b/contrib/python/Pygments/py3/pygments/lexers/gcodelexer.py deleted file mode 100644 index 2dd2875559..0000000000 --- a/contrib/python/Pygments/py3/pygments/lexers/gcodelexer.py +++ /dev/null @@ -1,35 +0,0 @@ -""" - pygments.lexers.gcodelexer - ~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Lexers for the G Code Language. - - :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.lexer import RegexLexer, bygroups -from pygments.token import Comment, Name, Text, Keyword, Number - -__all__ = ['GcodeLexer'] - - -class GcodeLexer(RegexLexer): - """ - For gcode source code. - - .. versionadded:: 2.9 - """ - name = 'g-code' - aliases = ['gcode'] - filenames = ['*.gcode'] - - tokens = { - 'root': [ - (r';.*\n', Comment), - (r'^[gmGM]\d{1,4}\s', Name.Builtin), # M or G commands - (r'([^gGmM])([+-]?\d*[.]?\d+)', bygroups(Keyword, Number)), - (r'\s', Text.Whitespace), - (r'.*\n', Text), - ] - } |