mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
66 lines
2.9 KiB
JSON
66 lines
2.9 KiB
JSON
// cSpell Settings
|
|
// cspell:ignore mdash enquote
|
|
{
|
|
"id": "latex",
|
|
"name": "LaTeX",
|
|
"description": "LaTeX cspell dictionary",
|
|
"readonly": true,
|
|
// List of dictionary files to add to the global list of dictionaries
|
|
"dictionaryDefinitions": [
|
|
{
|
|
"name": "latex",
|
|
"path": "./latex.txt.gz",
|
|
"description": "LaTeX dictionary"
|
|
}
|
|
],
|
|
// Dictionaries to always be used.
|
|
// Generally left empty
|
|
"dictionaries": [],
|
|
// Language Rules to apply to matching files.
|
|
// Files are matched on `languageId` and `local`
|
|
"languageSettings": [
|
|
{
|
|
// VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
|
|
// * will match against any file type.
|
|
"languageId": "latex",
|
|
// Language local. i.e. en-US, de-AT, or ru. * will match all locals.
|
|
// Multiple locals can be specified like: "en, en-US" to match both English and English US.
|
|
"locale": "*",
|
|
// By default the whole text of a file is included for spell checking
|
|
// Adding patterns to the "includeRegExpList" to only include matching patterns
|
|
"includeRegExpList": [],
|
|
// regex patterns than can be used with ignoreRegExpList or includeRegExpList
|
|
// Example: "pattern": [{ "name": "mdash", "pattern": "—" }]
|
|
// This could be included in "ignoreRegExpList": ["mdash"]
|
|
"patterns": [
|
|
{
|
|
"name": "LaTexMacrosFunctionNames",
|
|
"pattern": "/(?<!\\\\)\\\\\\w+/g",
|
|
"description": "Match against all LaTex Macro names"
|
|
},
|
|
{
|
|
"name": "LaTexMacros",
|
|
"pattern": "/(?<!\\\\)\\\\\\w*(\\[.*?\\])?(\\{.*?\\})?/g",
|
|
"description": "Match against all LaTex Macros"
|
|
},
|
|
{
|
|
"name": "LaTexMacrosMultiLine",
|
|
"pattern": "/(?<!\\\\)\\\\(?!(?:title|color|section|subsection|footnote|chapter|part|caption|emph|enquote|text))\\w+(?:\\[[^]*?\\]|\\{[^]*?\\})*/gi",
|
|
"description": "Match against all LaTex Macros"
|
|
},
|
|
{
|
|
"name": "LaTexMath",
|
|
"pattern": "/[$][^$]*[$]/gi",
|
|
"description": "Match against all LaTex Macros"
|
|
}
|
|
],
|
|
// To exclude patterns, add them to "ignoreRegExpList"
|
|
"ignoreRegExpList": ["LaTexMacrosMultiLine", "LaTexMath", "LaTexMacrosFunctionNames"],
|
|
// List of dictionaries to enable by name in `dictionaryDefinitions`
|
|
"dictionaries": ["latex"],
|
|
// Dictionary definitions can also be supplied here. They are only used iff "languageId" and "locale" match.
|
|
"dictionaryDefinitions": []
|
|
}
|
|
]
|
|
}
|