Open danix800 opened 4 years ago
yes. this makes the processing in the anchor parsing stage even more complicated.
Also I have seen that the multiple single quotes aren't processed properly 'something ''inside'' a string'
becomes something ''inside'' a string
instead of something 'inside' a string
I admit that the unquoting still needs improvement.
With 780ab94 I have committed a partial fix: At least it doesn't run into an endless loop anymore if the string starts with a '*'
and the following characters are not an anchor.
If the string is enclosed in quotes and starts with a '*'
and an anchor with the same name as the rest of the string is found, it is still treated as a reference to that anchor. I might improve this later on.
Test example:
The last sed would strip off quotes before passing into awk for anchor parsing, so
ReplacementText
's value becomes*(param->ptr)
(no quote). I think the unquoting should be done in the anchor parsing stage, right?