eclipse-che4z / che-che4z-lsp-for-hlasm

HLASM Language Support is an LSP extension that adds support for the High Level Assembler language to IDEs
Eclipse Public License 2.0
24 stars 25 forks source link

HLASM structured macros (e.g. IF, ELSE, ENDIF) are not recognized. #58

Closed Mstebner-PKWARE closed 4 years ago

Mstebner-PKWARE commented 4 years ago

The HLASM provides a suite of structured macros that apparently are not recognized or found through the HLA.SASMMAC1 & HLA.SASMMAC2 macro members, since they are not explicit members matching the names (IF, DO, etc).

To Reproduce Steps to reproduce the behavior:

  1. Provide the members of HLA.SASMMAC1 & 2 in the proc_grps.json libs: directories.
  2. Use ASM source members that use the HLASM macro suite
  3. All structured macros are flagged in error.

Expected behavior The structure logic macros should be recognized and not flagged in error.

Screenshots Capture Capture

Platform

Additional context Add any other context about the problem here.

asmelko commented 4 years ago

Hi,

these macros are in SASMMAC2. To use them, you need to write COPY ASMMSP before the first use of these macros. See the IBM documentation here.

If writing COPY ASMMSP did not help, can you provide us with the whole source code where the error occured?

Regards.

Mstebner-PKWARE commented 4 years ago

Yes, an explicit COPY ASMMSP in the source code was required (and worked). We had been using PROFILE(ASMMSP) as an assembler option, which provides an implicit COPY ASMMSP during an actual compile.