Jiri Malak
2019-06-06 22:10:24 UTC
Hi,
I got into problem with control word separator processing, it looks like
inplementation is strange on multiple processing level.
below is example which demonstrate a problem
.sr prf$='test'
.cw $
.sr cnt_pfx='&prf$.'
.cw ;
line
.sr cnt_pfx='&prf$.'
is broken into two lines
.sr cnt_pfx='&prf
.'
it is wrong, prf$ is macro and is used for text expansion that it should
not be broken by control word separator
in this case line should not be broken to two lines.
it looks like that this line division is done by calling
process_line(); // substitute variables + functions
but should be done by calling scan_scr(), where it should be context
sensitive
Jiri
I got into problem with control word separator processing, it looks like
inplementation is strange on multiple processing level.
below is example which demonstrate a problem
.sr prf$='test'
.cw $
.sr cnt_pfx='&prf$.'
.cw ;
line
.sr cnt_pfx='&prf$.'
is broken into two lines
.sr cnt_pfx='&prf
.'
it is wrong, prf$ is macro and is used for text expansion that it should
not be broken by control word separator
in this case line should not be broken to two lines.
it looks like that this line division is done by calling
process_line(); // substitute variables + functions
but should be done by calling scan_scr(), where it should be context
sensitive
Jiri