Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COBOL - Error on interpretation of LENGH OF if FUNCTION ALL INTRINSIC is active #431

Open
1 of 5 tasks
FALLAI-Denis opened this issue Aug 1, 2024 · 0 comments
Open
1 of 5 tasks
Labels
bug Something isn't working

Comments

@FALLAI-Denis
Copy link

FALLAI-Denis commented Aug 1, 2024

Development environment used

  • Z Open Editor version: 4.3.0
  • Editor Platform
    • Visual Studio Code
    • Red Hat CodeReady Workspaces
    • Eclipse Che
    • Standalone Theia
  • Editor Platform Version: 1.91.1
  • Operating System: Windows 10 22H2
  • Java Version: OpenJDK Runtime Environment Temurin-17.0.9+9
  • Related to RSE API?
    • RSE API Plugin version:
    • Zowe CLI version:
    • Node.js version:
  • Logs attached: no

Problem Description

When the FUNCTION ALL INTRINSIC declaration is active at the COBOL program level, using the LENGH OF special register triggers an error "LENGTH" expected instead of this input.

Observed behavior

image

Expected behavior

image

Probably the same error at origin but in a different context:

image

image

Also note a syntax highlighting issue if the length() function is used without its function prefix:

image
image
image
image

@phaumer phaumer added the bug Something isn't working label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants