Most of the coding I do is in MVS (z/OS) assembler. I have a wordfile that provides syntax highlighting for this and identifies the functions (or CSECTs in MVS terms) in the assembler source. These are displayed in the UE function list as they are for C functions.
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.
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.
Thanks...
Frank
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
MACRO BCP00010
&LAB BCPTAB &DSECT=NO, +BCP00020
&BCPLEN=, +BCP00030
&BCPPRIME=, +BCP00040
&BCPLOC=, +BCP00050
&BCPVECTR= BCP00060
Thanks...
Frank