-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable experimental math syntax highlighting (#1107)
- Loading branch information
1 parent
626efa0
commit 671783a
Showing
6 changed files
with
123 additions
and
25 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
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 |
---|---|---|
@@ -1,36 +1,66 @@ | ||
> | ||
>$ ||x||_[] $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ||x||_[) $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ||x||_⧼) $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ 1 / () $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^ source.typst markup.math.typst | ||
# ^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ √() $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ∛() $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ∛∜() $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> |
38 changes: 32 additions & 6 deletions
38
syntaxes/textmate/tests/unit/math/bracket_unmatch.typ.snap
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 |
---|---|---|
@@ -1,30 +1,56 @@ | ||
>$ ||x||_(cal(l)_2() $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^^^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst | ||
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst | ||
# ^ source.typst markup.math.typst meta.expr.call.typst | ||
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst markup.content.brace.typst | ||
# ^ source.typst markup.math.typst markup.content.brace.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ||x||_) $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst markup.content.brace.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ||x||_[ $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ||x||_[ $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ||x||_⧼ $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst constant.other.symbol.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> | ||
>$ ||x||_) $ | ||
#^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
# ^^^^^^^^^ source.typst markup.math.typst | ||
# ^^^^^^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.math.operator.typst | ||
# ^ source.typst markup.math.typst markup.content.brace.typst | ||
# ^ source.typst markup.math.typst | ||
# ^ source.typst markup.math.typst punctuation.definition.string.math.typst | ||
> |