3
V'íc: ã @ sJ d Z ddlmZmZ ddlmZmZmZmZm Z dgZ
G dd deZdS )zØ
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.
é )Ú
RegexLexerÚbygroups)ÚCommentÚNameÚTextÚKeywordÚNumberÚ
GcodeLexerc @ sP e Zd ZdZdZdgZdgZddefdej fde
eefd e
jfd
e
fgiZdS )r z;
For gcode source code.
.. versionadded:: 2.9
zg-codeZgcodez*.gcodeÚrootz;.*\nz^[gmGM]\d{1,4}\sz([^gGmM])([+-]?\d*[.]?\d+)z\sz.*\nN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ filenamesr r ZBuiltinr r r r Ú
WhitespaceÚtokens© r r ú>/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/gcodelexer.pyr s N)r Zpygments.lexerr r Zpygments.tokenr r r r r Ú__all__r r r r r Ú<module> s