eclipse-che4z / che-che4z-lsp-for-cobol

COBOL Language Support provides autocomplete, highlighting and diagnostics for COBOL code and copybooks
Other
83 stars 58 forks source link

Error when BYTE-LENGTH is used in a PICTURE declaration. #2558

Open Trisk3lion opened 3 weeks ago

Trisk3lion commented 3 weeks ago

Description

An error is reported when BYTE-LENGTH is used in a PICTURE declaration. Like this:

01 JSON-DATA-UTF8 PIC U BYTE-LENGTH 500.

The following error is reported: "A period was assumed before "BYTE-LENGHT"

Steps to reproduce

  1. Declare a variable as PIC U BYTE-LENGTH 500
  2. Start LSP
  3. See error.

Expected behavior

No error reported

Screenshots

image

Environment

ap891843 commented 1 day ago

@Trisk3lion Can you please try the latest dev build ? NOTE: validation for no dynamic clause along with UTF byte-length clause have not been added and would be done in future.