lix-website/themes/lix/assets/bootstrap/node_modules/@cspell/dict-latex/cspell-ext.json
2024-04-26 22:49:34 -06:00

49 lines
1.8 KiB
JSON

{
"id": "latex",
"name": "LaTeX",
"description": "LaTeX cspell dictionary",
"readonly": true,
"dictionaryDefinitions": [
{
"name": "latex",
"path": "./latex.txt.gz",
"description": "LaTeX dictionary"
}
],
"languageSettings": [
{
"languageId": "latex",
"locale": "*",
"patterns": [
{
"name": "LaTexMacrosFunctionNames",
"pattern": "/(?<!\\\\)\\\\\\w+/g",
"description": "Match against LaTex Macro function names"
},
{
"name": "LaTexMacros",
"pattern": "/(?<!\\\\)\\\\\\w*(\\[.*?\\])?(\\{.*?\\})?/g",
"description": "Match against single-line LaTex Macros"
},
{
"name": "LaTexMacrosMultiLine",
"pattern": "/(?<!\\\\)\\\\(?!(?:title|color|section|subsection|footnote|chapter|part|caption|emph|enquote|text|in\\b))\\w+(?:\\[[^]*?\\]|\\{[^]*?\\})*/gi",
"description": "Match against multi-line LaTex Macros"
},
{
"name": "LaTexMath",
"pattern": "/(?<!(?<!(?<!\\\\)\\\\)\\\\)[$][^$]*[$]/g",
"description": "Match against LaTex Math Macros"
},
{
"name": "comments",
"pattern": "/(?<!\\\\)%.*/g",
"description": "Matches single-line comments in a LaTeX File"
}
],
"ignoreRegExpList": ["LaTexMacrosMultiLine", "LaTexMath", "LaTexMacrosFunctionNames"],
"dictionaries": ["latex"]
}
]
}