Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions assets/syntaxes/02_Extra/typst-syntax-highlight
Submodule typst-syntax-highlight added at 1bde1e
28 changes: 28 additions & 0 deletions tests/syntax-tests/highlighted/Typst/test.typ
Original file line number Diff line number Diff line change
@@ -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
dev foo():
 print("hi")
```
28 changes: 28 additions & 0 deletions tests/syntax-tests/source/Typst/test.typ
Original file line number Diff line number Diff line change
@@ -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
dev foo():
print("hi")
```