lix-website/themes/lix/assets/bootstrap/node_modules/@cspell/dict-latex/cspell-ext.json

49 lines
1.8 KiB
JSON
Raw Normal View History

2024-04-27 03:39:10 +00:00
{
"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"]
}
]
}