Open gquerret opened 2 months ago
AFAIK triple quotes are required, not just for proparse, but also for the openedge compile. could be specific to some of our include files
I've only encountered a single source in our source set using the above, so I guess we can adjust it to use triple double quotes (and not 4 like the documentation hints to...)
Copied from vscode-abl/vscode-abl#208
DefaultValue.i:
UseDefaultValue.p:
{DefaultValue.i &DefaultValue=""-""}
Precompiles to the expected/wanted:
But causes:
The file compiles and preprocesses fine.
Documentation on using double quotes in include file parameters is not clear to me: "If you use double quotes (" ") around arguments in an argument list, ABL removes them. However, if you use single quotes (' '), ABL passes them. To pass one set of double quotes, you must use four sets of double quotes." https://documentation.progress.com/output/ua/OpenEdge_latest/pdsoe/PLUGINS_ROOT/com.openedge.pdt.langref.help/rfi1424919802847.html
But both
{DefaultValue.i &DefaultValue=""-""}
and{DefaultValue.i &DefaultValue="""-"""}
result in the expected outcome of "-" in the preprocessed file, while using 4 double quotes does not compile... Using 1 double quote ({DefaultValue.i &DefaultValue="-"}
) results inThe Proparse exception can be prevented by using """-""" apparently, but should this be needed? Single quotes are also an option of course... Is this a Proparse bug, or Progress being to relaxed about the input (as it is clearly not following its own documentation).