| 1 |
filetype: dot |
| 2 |
|
| 3 |
detect: |
| 4 |
filename: "\\.(dot|gv)$" |
| 5 |
|
| 6 |
rules: |
| 7 |
- type: "\\b(digraph|edge|graph|node|subgraph)\\b" |
| 8 |
- statement: "\\b(arrow(head|size|tail)|(bg|fill|font)?color|center|constraint|decorateP|dir|distortion|font(name|size)|head(clip|label)|height|label(angle|distance|font(color|name|size))?|layer(s)?|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|page(dir)?|peripheries|port_label_distance|rank(dir|sep)?|ratio|regular|rotate|same(head|tail)|shape(file)?|sides|size|skew|style|tail(clip|label)|URL|weight|width)\\b" |
| 9 |
- symbol: "=|->|--" |
| 10 |
|
| 11 |
- constant.string: |
| 12 |
start: "\"" |
| 13 |
end: "\"" |
| 14 |
skip: "\\\\." |
| 15 |
rules: |
| 16 |
- constant.specialChar: "\\\\." |
| 17 |
|
| 18 |
- comment: |
| 19 |
start: "//" |
| 20 |
end: "$" |
| 21 |
rules: |
| 22 |
- todo: "(TODO|XXX|FIXME):?" |
| 23 |
|
| 24 |
- comment: |
| 25 |
start: "/\\*" |
| 26 |
end: "\\*/" |
| 27 |
rules: |
| 28 |
- todo: "(TODO|XXX|FIXME):?" |
| 29 |
|