Closed pri-kise closed 6 months ago
Hello, thank you for reporting this issue on syntax highlighting in the AL languge extension. Unfortunately, this is not something that we can resolve well in syntax highlighting. To know whether a word is used in the context of an OptionMembers
declaration, that requires just that: Context-awareness. Syntax highlighting lacks such a context, unfortunately, but you can use semantic highlighting in Visual Studio Code to achieve better highlighting awareness.
You can read more about semantic highlight here, but the short solution is to open your VSCode settings and add "editor.semanticHighlighting.enabled": true
and enjoy more accurate highlighting.
Please include the following with each issue:
1. Describe the bug If you create OptionMembers with keywords then those values are highlighted as keyword.
2. To Reproduce Steps to reproduce the behavior:
3. Expected behavior The keywords shouldn't get this formatting if they are OptionMembers.
4. Actual behavior Currently they are hightlighted as on other places.
5. Versions: