|
| 1 | +--sort=no |
| 2 | + |
| 3 | +--langdef=Foo{base=C}{shared} |
| 4 | +--fields=+lr |
| 5 | +--extras=+r |
| 6 | + |
| 7 | +--kinddef-Foo=r,readhandler,read handlers |
| 8 | +--kinddef-Foo=m,method,methods |
| 9 | +--_roledef-Foo.m=set,set a handler |
| 10 | +--kinddef-Foo=w,writehandler,write handlers |
| 11 | +--kinddef-Foo=s,seekhandler,seek handlers |
| 12 | +--kinddef-Foo=o,openhandler,open handlers |
| 13 | +--kinddef-Foo=R,releasehandler,release handlers |
| 14 | + |
| 15 | +# tag:int |
| 16 | +--regex-Foo=/= ([a-z_]*_read),//{postrun}{{ |
| 17 | + \1 /readhandler _tag _commit dup |
| 18 | + _intervaltab { |
| 19 | + scope: |
| 20 | + } { |
| 21 | + pop |
| 22 | + } ifelse |
| 23 | +}} |
| 24 | + |
| 25 | +# tag:tag |
| 26 | +--regex-Foo=/\.([a-z_]+)[ \t]*=//{postrun}{{ |
| 27 | + \1 /method /set _reftag dup |
| 28 | + _intervaltab { |
| 29 | + exch _commit exch scope: |
| 30 | + } { |
| 31 | + _commit |
| 32 | + } ifelse |
| 33 | +}} |
| 34 | + |
| 35 | +# matchloc |
| 36 | +--regex-Foo=/= ([a-z_]*_write),//{postrun}{{ |
| 37 | + \1 /writehandler _tag _commit |
| 38 | + @1 _intervaltab { |
| 39 | + scope: |
| 40 | + } { |
| 41 | + pop |
| 42 | + } ifelse |
| 43 | +}} |
| 44 | + |
| 45 | +--regex-Foo=/= ([a-z_]*_l?lseek),//{postrun}{{ |
| 46 | + \1 /seekhandler _tag _commit |
| 47 | + 1@ _intervaltab { |
| 48 | + scope: |
| 49 | + } { |
| 50 | + pop |
| 51 | + } ifelse |
| 52 | +}} |
| 53 | + |
| 54 | +# [line:int] |
| 55 | +--regex-Foo=/= ([a-z_]*_release),//{postrun}{{ |
| 56 | + \1 /releasehandler _tag _commit |
| 57 | + [ 1@ _matchloc2line ] _intervaltab { |
| 58 | + scope: |
| 59 | + } { |
| 60 | + pop |
| 61 | + } ifelse |
| 62 | +}} |
| 63 | + |
| 64 | +# [startline:int endline:int] |
| 65 | +--regex-Foo=/= ([a-z_]*_open)(,)//{postrun}{{ |
| 66 | + \1 /openhandler _tag _commit |
| 67 | + [ 1@ _matchloc2line @2 _matchloc2line ] _intervaltab { |
| 68 | + scope: |
| 69 | + } { |
| 70 | + pop |
| 71 | + } ifelse |
| 72 | +}} |
0 commit comments