-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
[Bug]: doesn''t
in yaml is not recognized correctly
#5150
Comments
Thank you. I hadn't realized that is how single quotes are embedded in a single quoted string. At the moment, the spell checker isn't using a sophisticated parser, it basically treats the whole file as a text document. The plan is to allow custom parser per file type. As a work around, it is possible to add items:
- name: name
description: 'This path / doesn''t exist'
# cspell:ignore doesn''t or
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
dictionaryDefinitions:
- name: special-yaml-words
words:
- doesn''t
- hasn''t
- isn''t
languageSettings:
- languageId: yaml
locale: en,en-US,en-GB
dictionaries:
- special-yaml-words |
Yeah, I'm using |
I have to think about how to do it. The core is language and file type agnostic. Everything is configuration driven. There are two approaches that could work:
Both of these approaches have their merits. My preference is to get option 1, the parser, finished, but it is the longest away from being finished. Option 2, is much easier, since most of the support is already there. If you have any ideas on funding, they would be most welcome. By the way, thank you for synckit, I use it with the ESlint plugin. |
I also prefer option 1, this issue is not in a emergency status, it could be a known issue for now, but with a correct parser, a lot of hidden issues will be fixed at once. Challenging but worthful. I can do some help if you want any from me.
That's my pleasure. 🩷 I definitely should add a section Who is using |
Info
Kind of Issue
Which Tool or library
Which Version
Version: 7.3.2
Bug Description
Describe the bug
doesn''t
meansdoesn't
in yamlTo Reproduce
Steps to reproduce the behavior:
N/A
Expected behavior
No error
Screenshots
doesn
is reported as unknown wordAdditional context
N/A
cspell.json
N/A
Example Repository (Optional)
N/A
The text was updated successfully, but these errors were encountered: