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 #43065

Closed
eugene-babichenko opened this issue Feb 6, 2018 · 1 comment
Closed
Assignees
Labels
languages-basic Basic language support issues

Comments

@eugene-babichenko
Copy link

eugene-babichenko commented Feb 6, 2018

  • VSCode Version: 1.19.3
  • OS Version: macOS 10.13.3

Steps to Reproduce:

  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 produce 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.

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Feb 6, 2018
@eugene-babichenko eugene-babichenko changed the title A bug in highlighting in YAML files when using multi-line strings A bug in highlighting YAML files when using multi-line strings Feb 6, 2018
@octref octref added languages-basic Basic language support issues and removed editor editor-core Editor basic functionality labels Feb 7, 2018
@aeschli
Copy link
Contributor

aeschli commented Feb 7, 2018

This issue was moved to textmate/yaml.tmbundle#21

@aeschli aeschli closed this as completed Feb 7, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
languages-basic Basic language support issues
Projects
None yet
Development

No branches or pull requests

3 participants