diff options
author | Stefano Probst <senden9@gmail.com> | 2020-10-24 11:20:09 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-10-24 12:25:09 +0200 |
commit | 5ec4936a4f60f604436a32995b4d9995cecbbf15 (patch) | |
tree | 3814864a7571e28d3503e27dc71f9ffa8baca33a | |
parent | be84682bcb1e5ef3aba7ccc355f32f9820aebc86 (diff) |
Add Graphviz DOT example files
cc sharkdp/bat#1213
5 files changed, 110 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dot b/tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dot new file mode 100644 index 00000000..dddc1366 --- /dev/null +++ b/tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dot @@ -0,0 +1,41 @@ +[3;38;2;102;217;239mdigraph[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m +[38;2;248;248;242m [0m[38;2;102;217;239mlabel[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m<[0m[38;2;248;248;242mLabel [0m[38;2;255;255;255m<[0m[38;2;249;38;114mfont[0m[38;2;166;226;46m [0m[38;2;166;226;46mcolor[0m[38;2;166;226;46m=[0m[38;2;255;255;255m'[0m[38;2;230;219;116mred[0m[38;2;255;255;255m'[0m[38;2;255;255;255m>[0m[38;2;255;255;255m<[0m[38;2;249;38;114mb[0m[38;2;255;255;255m>[0m[38;2;248;248;242mformating[0m[38;2;255;255;255m</[0m[38;2;249;38;114mb[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mfont[0m[38;2;255;255;255m>[0m[38;2;248;248;242m,[0m[38;2;255;255;255m<[0m[38;2;249;38;114mbr[0m[38;2;255;255;255m/>[0m[38;2;248;248;242m test [0m[38;2;255;255;255m<[0m[38;2;249;38;114mfont[0m[38;2;166;226;46m [0m[38;2;166;226;46mpoint-size[0m[38;2;166;226;46m=[0m[38;2;255;255;255m'[0m[38;2;230;219;116m20[0m[38;2;255;255;255m'[0m[38;2;255;255;255m>[0m[38;2;248;248;242mis[0m[38;2;255;255;255m</[0m[38;2;249;38;114mfont[0m[38;2;255;255;255m>[0m[38;2;248;248;242m done[0m[38;2;255;255;255m<[0m[38;2;249;38;114mbr[0m[38;2;255;255;255m/>[0m[38;2;248;248;242m here [0m[38;2;255;255;255m<[0m[38;2;249;38;114mi[0m[38;2;255;255;255m>[0m[38;2;248;248;242mnow.[0m[38;2;255;255;255m</[0m[38;2;249;38;114mi[0m[38;2;255;255;255m>[0m[38;2;248;248;242m>[0m[38;2;248;248;242m;[0m + +[38;2;248;248;242m [0m[3;38;2;102;217;239mnode[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;102;217;239mshape[0m[38;2;249;38;114m=[0m[38;2;248;248;242mbox[0m[38;2;248;248;242m][0m +[38;2;248;248;242m [0m[38;2;102;217;239mrankdir[0m[38;2;249;38;114m=[0m[38;2;248;248;242mLR[0m +[38;2;248;248;242m [0m[38;2;102;217;239mmargin[0m[38;2;249;38;114m=[0m[38;2;248;248;242m0.1[0m +[38;2;248;248;242m a[0m[38;2;248;248;242m->[0m[38;2;248;248;242mb[0m + +[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m http://www.graphviz.org/doc/info/colors.html[0m +[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m note: style=filled![0m +[38;2;248;248;242m [0m[3;38;2;102;217;239mnode[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;102;217;239mshape[0m[38;2;249;38;114m=[0m[38;2;248;248;242mbox colorscheme[0m[38;2;249;38;114m=[0m[38;2;248;248;242mpaired12 [0m[38;2;102;217;239mstyle[0m[38;2;249;38;114m=[0m[38;2;248;248;242mfilled[0m[38;2;248;248;242m][0m +[38;2;248;248;242m [0m[38;2;102;217;239mmargin[0m[38;2;249;38;114m=[0m[38;2;248;248;242m0.1[0m +[38;2;248;248;242m a2[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m1[0m[38;2;248;248;242m][0m +[38;2;248;248;242m b2[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m3[0m[38;2;248;248;242m][0m +[38;2;248;248;242m a2[0m[38;2;248;248;242m->[0m[38;2;248;248;242mb2[0m[38;2;248;248;242m->[0m[38;2;248;248;242mx2[0m + +[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m http://www.graphviz.org/doc/info/colors.html[0m +[38;2;248;248;242m [0m[38;2;117;113;94m//[0m[38;2;117;113;94m note: style=filled![0m +[38;2;248;248;242m [0m[3;38;2;102;217;239mnode[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;102;217;239mshape[0m[38;2;249;38;114m=[0m[38;2;248;248;242mbox colorscheme[0m[38;2;249;38;114m=[0m[38;2;248;248;242mpaired12 [0m[38;2;102;217;239mstyle[0m[38;2;249;38;114m=[0m[38;2;248;248;242mfilled[0m[38;2;248;248;242m][0m +[38;2;248;248;242m [0m[38;2;102;217;239mrankdir[0m[38;2;249;38;114m=[0m[38;2;248;248;242mLR[0m +[38;2;248;248;242m [0m[38;2;102;217;239mmargin[0m[38;2;249;38;114m=[0m[38;2;248;248;242m0.1[0m +[38;2;248;248;242m c1[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m1[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c2[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m2[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c3[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m3[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c4[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m4[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c5[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m5[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c6[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m6[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c7[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m7[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c8[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m8[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c9[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m9[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c10[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m10[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c11[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m11[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c12[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m12[0m[38;2;248;248;242m][0m +[38;2;248;248;242m c[0m[38;2;248;248;242m->[0m[38;2;255;255;255m{[0m[38;2;248;248;242mc1 c3 c5 c7 c9 c11[0m[38;2;255;255;255m}[0m +[38;2;248;248;242m c1[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc2[0m +[38;2;248;248;242m c3[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc4[0m +[38;2;248;248;242m c5[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc6[0m +[38;2;248;248;242m c7[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc8[0m +[38;2;248;248;242m c9[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc10[0m +[38;2;248;248;242m c11[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc12[0m +[38;2;255;255;255m}[0m diff --git a/tests/syntax-tests/highlighted/Graphviz DOT/test_graph.dot b/tests/syntax-tests/highlighted/Graphviz DOT/test_graph.dot new file mode 100644 index 00000000..205c2981 --- /dev/null +++ b/tests/syntax-tests/highlighted/Graphviz DOT/test_graph.dot @@ -0,0 +1,3 @@ +[3;38;2;102;217;239mgraph[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m +[38;2;248;248;242m a[0m[38;2;248;248;242m--[0m[38;2;248;248;242mb[0m +[38;2;255;255;255m}[0m diff --git a/tests/syntax-tests/source/Graphviz DOT/LICENSE.md b/tests/syntax-tests/source/Graphviz DOT/LICENSE.md new file mode 100644 index 00000000..3f166cbe --- /dev/null +++ b/tests/syntax-tests/source/Graphviz DOT/LICENSE.md @@ -0,0 +1,22 @@ +The files `test_digraph.dot` and `test_graph.dot` are modified versions the files from https://github.com/scriptum/graphviz-examples/tree/a7762875efa32f90f6f1a37d866b2c26d362202a under the following license: + +The MIT License (MIT) + +Copyright (c) 2014 Pavel Roschin + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file diff --git a/tests/syntax-tests/source/Graphviz DOT/test_digraph.dot b/tests/syntax-tests/source/Graphviz DOT/test_digraph.dot new file mode 100644 index 00000000..11e383b4 --- /dev/null +++ b/tests/syntax-tests/source/Graphviz DOT/test_digraph.dot @@ -0,0 +1,41 @@ +digraph { + label = <Label <font color='red'><b>formating</b></font>,<br/> test <font point-size='20'>is</font> done<br/> here <i>now.</i>>; + + node [shape=box] + rankdir=LR + margin=0.1 + a->b + + // http://www.graphviz.org/doc/info/colors.html + // note: style=filled! + node [shape=box colorscheme=paired12 style=filled] + margin=0.1 + a2[fillcolor=1] + b2[fillcolor=3] + a2->b2->x2 + + // http://www.graphviz.org/doc/info/colors.html + // note: style=filled! + node [shape=box colorscheme=paired12 style=filled] + rankdir=LR + margin=0.1 + c1[fillcolor=1] + c2[fillcolor=2] + c3[fillcolor=3] + c4[fillcolor=4] + c5[fillcolor=5] + c6[fillcolor=6] + c7[fillcolor=7] + c8[fillcolor=8] + c9[fillcolor=9] + c10[fillcolor=10] + c11[fillcolor=11] + c12[fillcolor=12] + c->{c1 c3 c5 c7 c9 c11} + c1->c2 + c3->c4 + c5->c6 + c7->c8 + c9->c10 + c11->c12 +} diff --git a/tests/syntax-tests/source/Graphviz DOT/test_graph.dot b/tests/syntax-tests/source/Graphviz DOT/test_graph.dot new file mode 100644 index 00000000..34eb0c57 --- /dev/null +++ b/tests/syntax-tests/source/Graphviz DOT/test_graph.dot @@ -0,0 +1,3 @@ +graph { + a--b +} |