-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: loading csharp, markdown-math, and search-result syntax failed
- Loading branch information
Showing
16 changed files
with
5,115 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.02 KB
org.eclipse.tm4e.language_pack/syntaxes/markdown-math/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions
42
org.eclipse.tm4e.language_pack/syntaxes/markdown-math/markdown-math.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# MathMarkdown Example | ||
|
||
**Inline Equations:** | ||
|
||
You can include inline equations by enclosing them in single dollar signs ($). For example, the equation for the area of a circle is $A = \pi r^2$. | ||
|
||
**Display Equations:** | ||
|
||
To display equations on their own line, you can use double dollar signs ($$). For example, the quadratic formula is: | ||
|
||
$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ | ||
|
||
**Greek Letters:** | ||
|
||
MathMarkdown supports Greek letters using their LaTeX names. For example, you can write alpha ($\alpha$), beta ($\beta$), and gamma ($\gamma$) using the LaTeX notation. | ||
|
||
**Fractions and Exponents:** | ||
|
||
You can create fractions using the `\frac` command. For example, $\frac{1}{2}$ represents one-half. | ||
|
||
Exponents can be written using the caret (^) symbol. For example, $2^3$ represents two raised to the power of three. | ||
|
||
**Summation and Integration:** | ||
|
||
MathMarkdown also supports summation and integration symbols. For example, the sum of the first $n$ natural numbers can be written as: | ||
|
||
$$\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$$ | ||
|
||
The definite integral of a function $f(x)$ from $a$ to $b$ can be written as: | ||
|
||
$$\int_{a}^{b} f(x) dx$$ | ||
|
||
**Matrices:** | ||
|
||
You can create matrices using the `matrix` environment. For example, the following matrix represents a 2x2 identity matrix: | ||
|
||
$$ | ||
\begin{matrix} | ||
1 & 0 \\ | ||
0 & 1 \\ | ||
\end{matrix} | ||
$$ |
107 changes: 107 additions & 0 deletions
107
org.eclipse.tm4e.language_pack/syntaxes/markdown-math/markdown-math.tmLanguage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"information_for_contributors": [ | ||
"This file includes some grammar rules copied from https://github.com/James-Yu/LaTeX-Workshop/blob/master/syntax/TeX.tmLanguage.json" | ||
], | ||
"name": "Markdown Math", | ||
"scopeName": "text.html.markdown.math", | ||
"patterns": [ | ||
{ | ||
"include": "#math" | ||
} | ||
], | ||
"repository": { | ||
"math": { | ||
"patterns": [ | ||
{ | ||
"name": "comment.line.math.tex", | ||
"match": "((?<!\\\\)%)(.+)$", | ||
"captures": { | ||
"1": { | ||
"name": "punctuation.definition.comment.math.tex" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "line.separator.math.tex", | ||
"match": "(\\\\\\\\)$", | ||
"captures": { | ||
"1": { | ||
"name": "punctuation.line.separator.math.tex" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "meta.function.math.tex", | ||
"begin": "((\\\\)([a-zA-Z_]+))\\s*(\\{)", | ||
"beginCaptures": { | ||
"1": { | ||
"name": "storage.type.function.math.tex" | ||
}, | ||
"2": { | ||
"name": "punctuation.definition.function.math.tex" | ||
}, | ||
"3": { | ||
"name": "entity.name.function.math.tex" | ||
}, | ||
"4": { | ||
"name": "punctuation.definition.arguments.begin.math.tex" | ||
} | ||
}, | ||
"end": "\\}", | ||
"endCaptures": { | ||
"0": { | ||
"name": "punctuation.definition.arguments.end.math.tex" | ||
} | ||
}, | ||
"patterns": [ | ||
{ | ||
"include": "$self" | ||
} | ||
] | ||
}, | ||
{ | ||
"captures": { | ||
"1": { | ||
"name": "punctuation.definition.constant.math.tex" | ||
} | ||
}, | ||
"match": "(\\\\)([a-zA-Z_]+)\\b", | ||
"name": "constant.character.math.tex" | ||
}, | ||
{ | ||
"captures": { | ||
"1": { | ||
"name": "punctuation.definition.constant.math.tex" | ||
} | ||
}, | ||
"match": "(\\\\)(?!begin\\*\\{|verb)([A-Za-z]+)", | ||
"name": "constant.other.general.math.tex" | ||
}, | ||
{ | ||
"match": "(?<!\\\\)\\{", | ||
"name": "punctuation.math.begin.bracket.curly" | ||
}, | ||
{ | ||
"match": "(?<!\\\\)\\}", | ||
"name": "punctuation.math.end.bracket.curly" | ||
}, | ||
{ | ||
"match": "\\(", | ||
"name": "punctuation.math.begin.bracket.round" | ||
}, | ||
{ | ||
"match": "\\)", | ||
"name": "punctuation.math.end.bracket.round" | ||
}, | ||
{ | ||
"match": "(([0-9]*[\\.][0-9]+)|[0-9]+)", | ||
"name": "constant.numeric.math.tex" | ||
}, | ||
{ | ||
"match": "[\\+\\*/_\\^-]", | ||
"name": "punctuation.math.operator.latex" | ||
} | ||
] | ||
} | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
org.eclipse.tm4e.language_pack/syntaxes/markdown-math/markdown.math.block.tmLanguage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"fileTypes": [], | ||
"injectionSelector": "L:text.html.markdown - (comment, string, meta.paragraph.markdown, markup.math.block.markdown, markup.fenced_code.block.markdown, markup.raw.block.markdown)", | ||
"patterns": [ | ||
{ | ||
"include": "#double_dollar_math_block" | ||
}, | ||
{ | ||
"include": "#single_dollar_math_block" | ||
} | ||
], | ||
"repository": { | ||
"double_dollar_math_block": { | ||
"name": "markup.math.block.markdown", | ||
"contentName": "meta.embedded.math.markdown", | ||
"begin": "(?<=^\\s*)(\\${2})(?![^$]*\\${2})", | ||
"beginCaptures": { | ||
"1": { | ||
"name": "punctuation.definition.math.begin.markdown" | ||
} | ||
}, | ||
"end": "(.*)(\\${2})", | ||
"endCaptures": { | ||
"1": { | ||
"name": "meta.embedded.math.markdown", | ||
"patterns": [ | ||
{ | ||
"include": "text.html.markdown.math#math" | ||
} | ||
] | ||
}, | ||
"2": { | ||
"name": "punctuation.definition.math.end.markdown" | ||
} | ||
}, | ||
"patterns": [ | ||
{ | ||
"begin": "(^|\\G)", | ||
"while": "(^|\\G)(?!.*(\\${2}))", | ||
"patterns": [ | ||
{ | ||
"include": "text.html.markdown.math#math" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"single_dollar_math_block": { | ||
"name": "markup.math.block.markdown", | ||
"contentName": "meta.embedded.math.markdown", | ||
"begin": "(?<=^\\s*)(\\$)(?![^$]*\\$|\\d)", | ||
"beginCaptures": { | ||
"1": { | ||
"name": "punctuation.definition.math.begin.markdown" | ||
} | ||
}, | ||
"end": "(.*)(\\${1})", | ||
"endCaptures": { | ||
"1": { | ||
"name": "meta.embedded.math.markdown", | ||
"patterns": [ | ||
{ | ||
"include": "text.html.markdown.math#math" | ||
} | ||
] | ||
}, | ||
"2": { | ||
"name": "punctuation.definition.math.end.markdown" | ||
} | ||
}, | ||
"patterns": [ | ||
{ | ||
"begin": "(^|\\G)", | ||
"while": "(^|\\G)(?!.*(\\${1}))", | ||
"patterns": [ | ||
{ | ||
"include": "text.html.markdown.math#math" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"scopeName": "markdown.math.block" | ||
} |
Oops, something went wrong.