-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ literate ] Add support for typst files
- Loading branch information
Showing
7 changed files
with
130 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
= A test of literate Idris for typst | ||
|
||
/* idris | ||
silentlyDeclaredFunction : Nat -> Nat | ||
silentlyDeclaredFunction = (+6) | ||
*/ | ||
|
||
Some text here | ||
|
||
== How, some visible code | ||
|
||
```idris | ||
f : Nat -> Nat | ||
f = (+8) . silentlyDeclaredFunction | ||
``` |
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,32 @@ | ||
/* idris | ||
module Test2 | ||
*/ | ||
|
||
= Another test, with extended extension | ||
|
||
/* idris | ||
silentlyDeclaredFunction' : Nat -> Nat | ||
silentlyDeclaredFunction' = (+6) | ||
*/ | ||
|
||
Some text here | ||
|
||
== How, some visible code | ||
|
||
```idris | ||
f' : Nat -> Nat | ||
f' = (+8) . silentlyDeclaredFunction' | ||
``` | ||
|
||
/* idris | ||
g' : Nat -> Nat | ||
g' = silentlyDeclaredFunction' . f' | ||
*/ | ||
|
||
And now a hidden failing block: | ||
|
||
/* idris | ||
failing "ff" | ||
h : Nat -> Nat | ||
h = ff + 1 | ||
*/ |
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,2 @@ | ||
1/1: Building Test1 (Test1.typ) | ||
1/1: Building Test2 (Test2.idr.typ) |
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,4 @@ | ||
. ../../../testutils.sh | ||
|
||
check Test1.typ | ||
check Test2.idr.typ |