-
Notifications
You must be signed in to change notification settings - Fork 42
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
JCL syntax highlighting could use some work #839
Comments
Is this all for the JCL hiliting? |
That's the main file, the only other thing I see is theme rules: https://github.com/zowe/zlux-editor/blob/v2.x/staging/webClient/src/app/editor/code-editor/monaco/monaco.config.ts#L70-L87= |
Once you have changes ready to test, I could always test them against the JCL on my machine. |
The logic for the highlighting is here https://microsoft.github.io/monaco-editor/monarch.html |
@lchudinov may know if monaco allows syntax highlighting by means other than 'monarch' as monarch has limitations in its regex-and-state method and jcl is a very positional language. Unsure if monarch is the optimal way to do this. |
I see there 2 major problems, which I am not solving now:
At this point, I am focusing on simple problems. Based on the regexes used and small experience, good testing scenario is to copy each JCL in 4 variants:
It is shown on this example, that syntax depends on the line ending (something was already fixed in the monaco playground): |
For testing use this repo: Martin-Zeithaml/jclMonarch. |
Current state of JCL syntax highlighter was improved, however there is still a room for improvement. If a major problem will be found, new issue should be opened. |
JCL syntax highlighting could use some work
Use ISPF for reference but if possible, check that ISPF does it right. ISPF may not do everything 100% correctly
(ignore the red box - focus on different coloring highlighting in between screenshots)
The text was updated successfully, but these errors were encountered: