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

feat: Ignore IDREF values for HTML #252

Merged
merged 1 commit into from
Oct 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 68 additions & 3 deletions packages/html/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,78 @@
// Adding patterns to the "includeRegExpList" to only include matching patterns
"includeRegExpList": [],
// To exclude patterns, add them to "ignoreRegExpList"
"ignoreRegExpList": [],
"ignoreRegExpList": [
"href",
nschonni marked this conversation as resolved.
Show resolved Hide resolved
"HTML-IDREF-id",
"HTML-src",
"HTML-class",
"HTML-IDREF-aria-activedescendant",
"HTML-IDREF-aria-controls",
"HTML-IDREF-aria-describedby",
"HTML-IDREF-aria-details",
"HTML-IDREF-aria-errormessage",
"HTML-IDREF-aria-flowto",
"HTML-IDREF-aria-labelledby",
"HTML-IDREF-aria-owns",
"HTML-IDREF-for"
],
// regex patterns than can be used with ignoreRegExpList or includeRegExpList
// Example: "pattern": [{ "name": "mdash", "pattern": "—" }]
// This could be included in "ignoreRegExpList": ["mdash"]
"patterns": [],
"patterns": [
{
"name": "HTML-IDREF-id",
"pattern": "id=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-src",
"pattern": "src=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-class",
"pattern": "class=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-activedescendant",
"pattern": "aria-activedescendant=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-controls",
"pattern": "aria-controls=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-describedby",
"pattern": "aria-describedby=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-details",
"pattern": "aria-details=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-errormessage",
"pattern": "aria-errormessage=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-flowto",
"pattern": "aria-flowto=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-labelledby",
"pattern": "aria-labelledby=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-aria-owns",
"pattern": "aria-owns=\"(?:[^\\\"]+|\\.)*\""
},
{
"name": "HTML-IDREF-for",
"pattern": "for=\"(?:[^\\\"]+|\\.)*\""
}
],
// List of dictionaries to enable by name in `dictionaryDefinitions`
"dictionaries": ["html"],
"dictionaries": [
"html"
],
// Dictionary definitions can also be supplied here. They are only used iff "languageId" and "local" match.
"dictionaryDefinitions": []
}
Expand Down