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

Schema Default unescaped double quotes #1097

Open
1 task done
RedCMD opened this issue Feb 14, 2025 · 0 comments
Open
1 task done

Schema Default unescaped double quotes #1097

RedCMD opened this issue Feb 14, 2025 · 0 comments

Comments

@RedCMD
Copy link

RedCMD commented Feb 14, 2025

Describe the bug

YAML states if a string starts with a double quote, it then must end with one
If a schema default value starts with a double quote (and doesn't end with ending double quote)
an error is left after completion

Expected Behavior

Surround the string with single quotes and escape any existing single quotes
OR
Surround the string with double quotes and escape any existing double quotes
OR
use a block-scalar |

Current Behavior

notice the lines comment:, begin: and end: (under string:) are all reporting errors
Image

Steps to Reproduce

  1. assign schema https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json
  2. trigger the New Grammar completion
  3. 🐛Bug

Environment

  • Windows

the same should also apply to all other special YAML tokens
#comments etc
I would like the schema to be compatible with both YAML and JSON

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

1 participant