// SYNTAX TEST "Packages/Graphviz/DOT.sublime-syntax" // I'm a comment! // <- punctuation.definition.comment.dot // ^^^^^^^^^^^^^^ comment.line.double-slash.dot /* Me too! */ // <- punctuation.definition.comment.dot // ^^^^^^^^^^ comment.block.dot // ^^ punctuation.definition.comment.dot /** // <- punctuation.definition.comment.dot //^^ comment.block.dot * Me as well! // ^ punctuation.definition.comment.dot */ // <- punctuation.definition.comment.dot # Me also! // <- punctuation.definition.comment.dot // ^^^^^^^ comment.line.number-sign.dot graph n {} // <- storage.type.dot // ^ entity.name.graph.dot node n { size="str" } // ^ punctuation.definition.string.begin.dot // ^^^^^ string.quoted.double.dot // ^ punctuation.definition.string.end.dot // ^ punctuation.definition.group.begin.dot // ^^^^^^^^^^^^^^ meta.group.dot // ^ punctuation.definition.group.end.dot edge n { main="\n" } // ^^ constant.character.escape.dot node n { color="" } // ^^^^^ support.constant.attribute.node.dot edge n { lhead="" } // ^^^^^ support.constant.attribute.edge.dot graph n { page="" } // ^^^^ support.constant.attribute.graph.dot graph cluster_n { // ^^^^^^^^^ entity.name.graph.dot // ^^^^^^^^ meta.annotation.dot variable.annotation.cluster.dot // ^ - meta.annotation.dot variable.annotation.cluster.dot t -> n; // ^^ punctuation.operator.relationship.dot } // Loosely taken from http://www.graphviz.org/content/node-shapes#html digraph structs { node [shape=plaintext] struct1 [label=< // ^ keyword.operator.assignment.dot // ^ punctuation.section.embedded.begin.dot // ^^ source.dot.embedded.html // ^ punctuation.definition.tag.end.html - punctuation.section.embedded.end.dot
leftmid dleright
>]; // ^^^^ source.dot.embedded.html // ^^^^^ source.dot.embedded.html // ^ punctuation.definition.tag.end.html - punctuation.section.embedded.end.dot // ^ punctuation.section.embedded.end.dot - source.dot.embedded.html struct2 [label=< // ^ keyword.operator.assignment.dot // ^ punctuation.section.embedded.begin.dot // ^^ source.dot.embedded.html // ^ punctuation.definition.tag.end.html - punctuation.section.embedded.end.dot
onetwo
>]; // ^^^^^^ source.dot.embedded.html //^^^^^^ meta.tag // ^ - meta.tag // ^ punctuation.definition.tag.end.html - punctuation.section.embedded.end.dot // ^ punctuation.section.embedded.end.dot - source.dot.embedded.html struct1:f1 -> struct2:f0; struct2:f0 -> struct1:f2; }