aboutsummaryrefslogtreecommitdiff
blob: 5c7a6a80845796d79b32e80859d539863a06c56d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#n
# print out type, role and attribute declarations that
# are not inside require and optional blocks.

/require \{/,/} # end require/b nextline
/optional \{/,/} # end optional/b nextline

/^[[:blank:]]*(attribute(_role)?|type(alias)?|bool) /{
	s/^[[:blank:]]+//
	p
}

/^[[:blank:]]*role[[:blank:]]+[a-zA-Z_]+[[:blank:]]*;/{
	s/^[[:blank:]]+//
	p
}

:nextline