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

Fix bugs with the cut-language server in the vs code extension #219

Closed
dakaa16 opened this issue Jul 8, 2022 · 0 comments · Fixed by #305
Closed

Fix bugs with the cut-language server in the vs code extension #219

dakaa16 opened this issue Jul 8, 2022 · 0 comments · Fixed by #305
Assignees
Labels
bug Something isn't working good first issue Good for newcomers VS Code Extension This issue is to do with the VS Code extension of Cobol Check

Comments

@dakaa16
Copy link
Collaborator

dakaa16 commented Jul 8, 2022

The cut-language is unstable. The following bugs should be fixed:

  • BEFORE-EACH with a hyphen is not being recognized, so it is not colored. (Note that both 'BEFORE EACH' and 'BEFORE-EACH' are valid)
  • AFTER-EACH with a hyphen is not being recognized, so it is not colored. (Note that both 'AFTER EACH' and 'AFTER-EACH' are valid)
  • END-BEFORE and END-AFTER are seen as 'unclosed' and will always show an error. The error should only show up on AFTER EACH or BEFORE EACH when they are not closed with END-AFTER or END-BEFORE.
  • Text inside a string is not ignored by the syntax check, so the following mock shows an error, due to the word 'MOCKED' inside the string:
           MOCK PARAGRAPH 300-CHANGE-1
              EVALUATE VALUE-1
              WHEN "Hello"
                MOVE "MOCKED" TO VALUE-1
              WHEN OTHER
                MOVE "mocked" TO VALUE-1
              END-EVALUATE
           END-MOCK
@dakaa16 dakaa16 added bug Something isn't working VS Code Extension This issue is to do with the VS Code extension of Cobol Check good first issue Good for newcomers labels Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers VS Code Extension This issue is to do with the VS Code extension of Cobol Check
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants