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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
# This is just a test file for joverc processing
# not to be installed or considered an example.
# numbers ending in 0 are the expected path, so
# if this works, Main should have lines with
# 10, 20, 30, ... 100 followed by a line with 200 300
define-macro testbegin ^[xselect-buffer^M*testlog*^[xend-of-file^M^M++^[xnewline^M
define-macro testend --^[xnewline^M^[xmake-buffer-unmodified^M
execute-macro testbegin
if true
set right-margin 10
else
set right-margin 11
endif
insert-variable right-margin
newline
#
if false
set right-margin 21
else
set right-margin 20
endif
insert-variable right-margin
newline
#
if true
if true
set right-margin 30
else
set right-margin 31
endif
else
if true
set right-margin 32
else
set right-margin 33
endif
endif
insert-variable right-margin
newline
#
if false
if true
set right-margin 41
else
set right-margin 42
endif
else
if true
set right-margin 40
else
set right-margin 43
endif
endif
insert-variable right-margin
newline
#
if true
if true
set right-margin 50
else
set right-margin 51
endif
endif
insert-variable right-margin
newline
#
if true
if false
set right-margin 61
else
set right-margin 60
endif
endif
insert-variable right-margin
newline
#
if false
else
if true
set right-margin 70
else
set right-margin 71
endif
endif
insert-variable right-margin
newline
#
if false
else
if false
set right-margin 81
else
set right-margin 80
endif
endif
insert-variable right-margin
newline
source doc/test1.rc
#
execute-macro testend
|