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

[yaml] highlighting issue of single quotes in a value #10746

Closed
Tracked by #1
PassTheMayo opened this issue Aug 20, 2016 · 5 comments
Closed
Tracked by #1

[yaml] highlighting issue of single quotes in a value #10746

PassTheMayo opened this issue Aug 20, 2016 · 5 comments
Assignees

Comments

@PassTheMayo
Copy link

  • VSCode Version: Code 1.4.0 (6276dcb, 2016-08-04T16:45:31.680Z)
  • OS Version: Windows_NT ia32 10.0.10586

When you put a ' symbol in a YML file variables, it will syntax color everything until it reaches another '. Usually this isn't an issue while doing double (''), but the game Minecraft recognizes the single ' as a ' and you don't have to put double '.

Steps to Reproduce:

  1. Open a .YML file
  2. Make a variable and include a ' in the value (examplevalue: This is an example's value)
@aeschli aeschli changed the title YML File --> ' <-- Issue with Syntax Coloring [yaml] highlighting issue of single quotes in a value Aug 29, 2016
@aeschli
Copy link
Contributor

aeschli commented Aug 29, 2016

@JacobGunther12 Can you add an example?
I tried this

# An employee record
martin:
    name: Martin D'vloper
    job: Developer
    skill: Elite

and it seems to colorize fine

@PassTheMayo
Copy link
Author

Yes, @aeschli that is exactly what I mean. It turns out that it works differently on my MacBook. Possibly my MacBook updated VSCode and my PC didn't? By the way, I saw this in Minecraft YAML configuration, there must of been something that triggered a syntax error... Oh well :/

@aeschli
Copy link
Contributor

aeschli commented Aug 29, 2016

Do you have any extension installed that might replace the Yaml grammar?
Do you have a URL of the Minecraft Yaml file?

@PassTheMayo
Copy link
Author

@aeschli Nope, just a couple of extensions for PHP debug and C++ C# stuff that I might use in the future. The file I'm editing is on my PC.

@aeschli
Copy link
Contributor

aeschli commented Sep 7, 2016

Closing as I can't reproduce...

@aeschli aeschli closed this as completed Sep 7, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants