-
Notifications
You must be signed in to change notification settings - Fork 115
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
YAML file does not colorise correctly #119
Comments
@alexandrudima It looks like the same textmate grammar is working in TextMate, but not in VS Code. |
This took me quite a while to track down. It turns out it is caused by the following rule in the YAML grammar:
And the issue appears to be around this code:
What would happen is that the line with a Here's a debug trace of line 4 matching the outer end pattern instead of the inner begin pattern:
The rule id |
VSCode Version: 1.39.2
OS Version: macOS Catalina 10.15
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
One or more problems occur with the YAML syntax highlighting when using Blocks in yaml files.
There was already an issue but that has been closed (microsoft/vscode#63382) in favor of a TextMateBundle issue (textmate/yaml.tmbundle#30)
Since there are no problems within TextMate and the YAML Syntax i am creating a new issue here.
Example one:
Block is not initialised correctly as following pipes
|
within are then again recognized as blocks which leads to illegal characters error.Example two:
Same as in the issue before, double quotes blocks within Blocks are not closed properly.
These issues only exist with VisualStudio Code. TextMate does render these correctly.
Visual Studio Code
TextMate
The text was updated successfully, but these errors were encountered: