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/graphviz.py | |
parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
download | ydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz |
fix ya.make
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/graphviz.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/lexers/graphviz.py | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/graphviz.py b/contrib/python/Pygments/py3/pygments/lexers/graphviz.py deleted file mode 100644 index c68ce2d3ea..0000000000 --- a/contrib/python/Pygments/py3/pygments/lexers/graphviz.py +++ /dev/null @@ -1,59 +0,0 @@ -""" - pygments.lexers.graphviz - ~~~~~~~~~~~~~~~~~~~~~~~~ - - Lexer for the DOT language (graphviz). - - :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, Keyword, Operator, Name, String, Number, \ - Punctuation, Whitespace - - -__all__ = ['GraphvizLexer'] - - -class GraphvizLexer(RegexLexer): - """ - For graphviz DOT graph description language. - - .. versionadded:: 2.8 - """ - name = 'Graphviz' - url = 'https://www.graphviz.org/doc/info/lang.html' - aliases = ['graphviz', 'dot'] - filenames = ['*.gv', '*.dot'] - mimetypes = ['text/x-graphviz', 'text/vnd.graphviz'] - tokens = { - 'root': [ - (r'\s+', Whitespace), - (r'(#|//).*?$', Comment.Single), - (r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment.Multiline), - (r'(?i)(node|edge|graph|digraph|subgraph|strict)\b', Keyword), - (r'--|->', Operator), - (r'[{}[\]:;,]', Punctuation), - (r'(\b\D\w*)(\s*)(=)(\s*)', - bygroups(Name.Attribute, Whitespace, Punctuation, Whitespace), - 'attr_id'), - (r'\b(n|ne|e|se|s|sw|w|nw|c|_)\b', Name.Builtin), - (r'\b\D\w*', Name.Tag), # node - (r'[-]?((\.[0-9]+)|([0-9]+(\.[0-9]*)?))', Number), - (r'"(\\"|[^"])*?"', Name.Tag), # quoted node - (r'<', Punctuation, 'xml'), - ], - 'attr_id': [ - (r'\b\D\w*', String, '#pop'), - (r'[-]?((\.[0-9]+)|([0-9]+(\.[0-9]*)?))', Number, '#pop'), - (r'"(\\"|[^"])*?"', String.Double, '#pop'), - (r'<', Punctuation, ('#pop', 'xml')), - ], - 'xml': [ - (r'<', Punctuation, '#push'), - (r'>', Punctuation, '#pop'), - (r'\s+', Whitespace), - (r'[^<>\s]', Name.Tag), - ] - } |