You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.9 KiB
64 lines
2.9 KiB
// cSpell Settings |
|
// cspell:ignore mdash enquote |
|
{ |
|
"id": "latex", |
|
"name": "LaTeX", |
|
"description": "LaTeX cspell dictionary", |
|
// List of dictionary files to add to the global list of dictionaries |
|
"dictionaryDefinitions": [ |
|
{ |
|
"name": "latex", |
|
"file": "./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. |
|
"local": "*", |
|
// 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 "local" match. |
|
"dictionaryDefinitions": [] |
|
} |
|
] |
|
}
|
|
|