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
commit 0da4084064
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"] [submodule "assets/syntaxes/02_Extra/sublime-odin"]
path = assets/syntaxes/02_Extra/sublime-odin path = assets/syntaxes/02_Extra/sublime-odin
url = https://github.com/odin-lang/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 definition and test file for GDScript highlighting, see #3236 (@chetanjangir0)
- Add syntax test file for Odin highlighting, see #3241 (@chetanjangir0) - Add syntax test file for Odin highlighting, see #3241 (@chetanjangir0)
- Update quadlet syntax mapping rules to cover quadlets in subdirectories #3299 (@cyqsimon) - Update quadlet syntax mapping rules to cover quadlets in subdirectories #3299 (@cyqsimon)
- Add syntax Typst #3300 (@cskeeters)
## Themes ## Themes

@ -0,0 +1 @@
Subproject commit 1bde1ea511d86c622a0fd27d9e0db3e047d4094f

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")
```