1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 03:42:26 +01:00

Merge pull request #3300 from cskeeters/syntax_typst

Adds Typst syntax from hyrious/typst-syntax-highlight
This commit is contained in:
Keith Hall
2025-05-21 05:47:26 +03:00
committed by GitHub
5 changed files with 61 additions and 0 deletions

3
.gitmodules vendored
View File

@@ -269,3 +269,6 @@
[submodule "assets/syntaxes/02_Extra/sublime-odin"]
path = assets/syntaxes/02_Extra/sublime-odin
url = https://github.com/odin-lang/sublime-odin
[submodule "assets/syntaxes/02_Extra/typst-syntax-highlight"]
path = assets/syntaxes/02_Extra/typst-syntax-highlight
url = https://github.com/hyrious/typst-syntax-highlight

View File

@@ -33,6 +33,7 @@
- Add syntax definition and test file for GDScript highlighting, see #3236 (@chetanjangir0)
- Add syntax test file for Odin highlighting, see #3241 (@chetanjangir0)
- Update quadlet syntax mapping rules to cover quadlets in subdirectories #3299 (@cyqsimon)
- Add syntax Typst #3300 (@cskeeters)
## Themes

View File

@@ -0,0 +1,28 @@
#set text(9.5pt)
= Heading
- Bullet 1
- Bullet 2
- Bullet 3
+ List 1
+ List 2
+ List 3
#figure(
 table(
 columns: (auto, auto),
 table.header(
 [Name], [Age],
 ),
 [John], [50],
 [Jane], [48],
 ),
 caption: [People],
)
```python
def foo():
 print("hi")
```

View File

@@ -0,0 +1,28 @@
#set text(9.5pt)
= Heading
- Bullet 1
- Bullet 2
- Bullet 3
+ List 1
+ List 2
+ List 3
#figure(
table(
columns: (auto, auto),
table.header(
[Name], [Age],
),
[John], [50],
[Jane], [48],
),
caption: [People],
)
```python
def foo():
print("hi")
```