forked from streetsidesoftware/cspell-dicts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cspell-ext.json
48 lines (48 loc) · 1.77 KB
/
cspell-ext.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"id": "latex",
"name": "LaTeX",
"description": "LaTeX cspell dictionary",
"readonly": true,
"dictionaryDefinitions": [
{
"name": "latex",
"path": "./dict/latex.txt",
"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"]
}
]
}