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

A bug in highlighting YAML files when using multi-line strings #21

Closed
aeschli opened this issue Feb 7, 2018 · 1 comment
Closed

A bug in highlighting YAML files when using multi-line strings #21

aeschli opened this issue Feb 7, 2018 · 1 comment

Comments

@aeschli
Copy link

aeschli commented Feb 7, 2018

  1. Try using a multi-line string starting with a vertical bar.
  2. Write some text on the next line.
  3. Add text in quotes.
  4. The last quote should be on a new line.
  5. The rest of the text gets highlighted like a string.

EXAMPLES:

  1. This produces the bug (see the attached image):
field1: 12
field2: |
  bash -c "
  git init
  "
field3:
  - 1234

screen shot 2018-02-07 at 00 25 10

  1. This too:
field1: 12
field2: |
  bash -c "git init
  "
field3:
  - 1234
  1. But this does not:
field1: 12
field2: |
  bash -c "git init
  && git add ."
field3:
  - 1234

So, the whole thing looks like it gets messed when a multi-line statement initialized with a vertical bar has a line with only quote.

Copied from original issue: microsoft/vscode#43065

@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