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

Incorrect syntax highlighting with YAML-multiline strings #22

Closed
aeschli opened this issue Feb 16, 2018 · 2 comments
Closed

Incorrect syntax highlighting with YAML-multiline strings #22

aeschli opened this issue Feb 16, 2018 · 2 comments

Comments

@aeschli
Copy link

aeschli commented Feb 16, 2018

Steps to Reproduce:

  1. Write YAML with multiline string, like this:
foo: bar
multiline: >
  This is a multiline string.
  This is still a multiline string, but has a colon: As you see, the syntax
  highlight doesn't work correctly as it thinks the text before colon is a key.
baz: quux
  1. Save the YAML-file and notice the syntax highlight is incorrect:

screen shot 2018-02-16 at 15 02 26

Copied from original issue: microsoft/vscode#43827

@aeschli
Copy link
Author

aeschli commented Feb 16, 2018

From @aripalo on February 16, 2018 13:26

Also same problem exists for multiline strings prefixed with pipe character |:

Input

foo: bar
multiline: |
  This is a multiline string.
  This is still a multiline string, but has a colon: As you see, the syntax
  highlight doesn't work correctly as it thinks the text before colon is a key.
baz: quux

Output:

screen shot 2018-02-16 at 15 26 10

@infininight
Copy link
Member

Duplicate of #17. Slightly different trigger but the same cause, working to figure out a solution now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants