Michael.Weiss wrote:
The background is, I'm currently working on a correct syntax highlighter for SAS code and therefore I would like to highlight code as it is processed by the SAS code parser.
If that is the case then I think your highlighter should at least consider your first two examples syntax errors. Proper usage as mentioned is %STR or %NRSTR. To make it easy on yourself flag any use of %BQUOTE or %NRBQUOTE (that appear in a macro) where the argument is not a macro variable reference as a "potential syntax error". Does your syntax highligher know if it is looking at statements defined between %MACRO and %MEND.
... View more