File: nested_update.block

package info (click to toggle)
msc-generator 8.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,484 kB
  • sloc: cpp: 129,931; yacc: 23,655; ansic: 7,464; sh: 5,026; makefile: 948
file content (19 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
template col tmp {
    box one {
        box two;
        box three;
        box four;
    }
}

# Address a nested block with dot notation
copy tmp as a {
    update one.two, one.four [fill.color=green];
}

# This also succeeds
copy tmp as b {
    update one  {
        update two [fill.color=green];
    }
}