mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 07:07:54 +03:00
Define language configurations as extensions of others
This commit is contained in:
parent
00db24e00d
commit
0872946ac8
@ -1,4 +1,4 @@
|
||||
# Grammars and language configurations
|
||||
# Grammars and language configuration Files
|
||||
|
||||
The following grammar files are retrieved from https://github.com/jlelong/vscode-latex-basics and are updated by the script `../dev/update-grammar.js`
|
||||
|
||||
@ -7,3 +7,10 @@ The following grammar files are retrieved from https://github.com/jlelong/vscode
|
||||
- `TeX.tmLanguage.json`
|
||||
- `cpp-grammar-bailout.tmLanguage.json`
|
||||
- `markdown-latex-combined.tmLanguage.json`
|
||||
|
||||
The following language configuration files are built from the corresponding file in `data/` using the script `../dev/update-language.js``
|
||||
|
||||
- `latex-cpp-embedded-language-configuration.json`
|
||||
- `latex-language-configuration.json`
|
||||
- `latex3-language-configuration.json`
|
||||
- `markdown-latex-combined-language-configuration.json`
|
||||
|
@ -29,6 +29,7 @@
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["`", "'"]
|
||||
]
|
||||
],
|
||||
"wordPattern": "(__)|(\\*\\*)|(\\.\\.\\.)|([^\\s`'\"~_!?|$#@%^&*\\-=+;:,.<>(){}[\\]\\\\\\/]{2,})"
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "https://raw.githubusercontent.com/jlelong/vscode-latex-basics/main/languages/latex-language-configuration.json",
|
||||
"extends": "../latex-language-configuration.json",
|
||||
|
||||
"overrides": {
|
||||
"wordPattern": "(__)|(\\*\\*)|(\\.\\.\\.)|([^\\s`'\"~_!?|$#@%^&*\\-=+;:,.<>(){}[\\]\\\\\\/]{2,})"
|
||||
|
@ -1,3 +1,33 @@
|
||||
{
|
||||
"extends": "https://github.com/jlelong/vscode-latex-basics/blob/main/languages/markdown-latex-combined-language-configuration.json"
|
||||
"extends": "https://raw.githubusercontent.com/jlelong/vscode-latex-basics/main/languages/markdown-latex-combined-language-configuration.json",
|
||||
|
||||
"overrides": {
|
||||
"autoClosingPairs": [
|
||||
["\\begin{", ""],
|
||||
["\\left(", ""],
|
||||
["\\left[", ""],
|
||||
["\\left{", ""],
|
||||
["\\bigl(", ""],
|
||||
["\\bigl[", ""],
|
||||
["\\bigl{", ""],
|
||||
["\\Bigl(", ""],
|
||||
["\\Bigl[", ""],
|
||||
["\\Bigl{", ""],
|
||||
["\\biggl(", ""],
|
||||
["\\biggl[", ""],
|
||||
["\\biggl{", ""],
|
||||
["\\Biggl(", ""],
|
||||
["\\Biggl[", ""],
|
||||
["\\Biggl{", ""],
|
||||
["\\(", ""],
|
||||
["\\[", ""],
|
||||
["\\{", ""],
|
||||
["@(", ""],
|
||||
["@[", ""],
|
||||
["@{", ""],
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user