-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot.syntax
47 lines (47 loc) · 1.84 KB
/
dot.syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Graphviz (DOT)
fileTypes:
- dot
- DOT
scopeName: source.dot
uuid: 1A53D54E-6B1D-11D9-A006-000D93589AF6
foldingStartMarker: \{
patterns:
- name: storage.type.dot
match: \b(node|edge|graph|digraph|subgraph|strict)\b
- name: support.constant.attribute.node.dot
match: \b(bottomlabel|color|comment|distortion|fillcolor|fixedsize|fontcolor|fontname|fontsize|group|height|label|layer|orientation|peripheries|regular|shape|shapefile|sides|skew|style|toplabel|URL|width|z)\b
- name: support.constant.attribute.edge.dot
match: \b(arrowhead|arrowsize|arrowtail|color|comment|constraint|decorate|dir|fontcolor|fontname|fontsize|headlabel|headport|headURL|label|labelangle|labeldistance|labelfloat|labelcolor|labelfontname|labelfontsize|layer|lhead|ltail|minlen|samehead|sametail|style|taillabel|tailport|tailURL|weight)\b
- name: support.constant.attribute.graph.dot
match: \b(bgcolor|center|clusterrank|color|comment|compound|concentrate|fillcolor|fontname|fontpath|fontsize|label|labeljust|labelloc|layers|margin|mclimit|nodesep|nslimit|nslimit1|ordering|orientation|page|pagedir|quantum|rank|rankdir|ranksep|ratio|remincross|rotate|samplepoints|searchsize|size|style|URL)\b
- name: string.quoted.double.dot
endCaptures:
"0":
name: punctuation.definition.string.end.dot
begin: "\""
beginCaptures:
"0":
name: punctuation.definition.string.begin.dot
end: "\""
patterns:
- name: constant.character.escape.dot
match: \\.
- name: comment.line.double-slash.dot
captures:
"1":
name: punctuation.definition.comment.dot
match: (//).*$\n?
- name: comment.line.number-sign.dot
captures:
"1":
name: punctuation.definition.comment.dot
match: (#).*$\n?
- name: comment.block.dot
captures:
"0":
name: punctuation.definition.comment.dot
begin: /\*
end: \*/
foldingStopMarker: \}
keyEquivalent: ^~G