I would also like the syntax highlighting to be able to identify the macros used in the code if possible. The coding conventions for macros are as follows.
On the first line - or first non-comment line, starting in column 10 is the keyword MACRO, and nothing else. A comment line begins with a * or .* in column one. Any digits or characters from columns 73-80 as regarded as sequence numbers and are ignored.
Then on the following line also in column 10 is the name of the macro. The name may or may not be preceded by a place holder variable that the programmer can use to declare a structure mapped by the macro using the name in the placeholder. So a typical macro would be coded would look like that below. The + in column 72 indicates a line continuation character.
- Code: Select all
&LAB BCPTAB &DSECT=NO, +BCP00020
So for syntax highlighting purposes I would like if possible to have the macro name -BCPTAB in this case displayed in the UE function list. Is it possible to code up a search expression that looks for the keyword macro in column 10 and then on the following line, also in column 10 can extract the macro name to be displayed in the function list? Any assistance appreciated.