69 Commits

Author SHA1 Message Date
Laurenz
bb59f0e2b2 Incremental parsing in CLI
Reparses files in the CLI incrementally and also uses the file modification timestamp to completely skip reparsing if possible.
2023-09-19 15:19:12 +02:00
Laurenz
25613cfaf3 Fix missing capturing of assignments
The previous commit was a bit overambitious. The left-hand side of assignments should actually be fully captured: Argument lists in `at` calls can contain captured variables. And if the assigned variable itself is captured, then the function is faulty anyway. (And we ensure the correct error message by capturing it.)

Fixes #2169
2023-09-16 20:41:44 +02:00
Laurenz
b7430f6da0 Fix incremental compilation by fixing closure capturing
Fixes #1958
2023-09-16 12:37:35 +02:00
Laurenz
e39be71a54 Fix newline parsing behaviour in markup 2023-09-12 11:45:24 +02:00
Laurenz
b471ac7d59 First-class types
Makes types first-class values.
2023-09-11 14:40:22 +02:00
Laurenz
fe402759c0 Don't automatically match fences
Fixes #306
2023-09-06 12:07:37 +02:00
Laurenz
2f672b4e2e Allow packages to specify their minimum compiler version 2023-09-04 16:29:57 +02:00
KillTheMule
1cc67d5df2
Update ast.rs (#2057)
Rust 1.74 warns about this, noting it will be a hard error soon. Quite annoying when developing on an unstable compiler now already ;)
2023-09-04 11:46:44 +02:00
Pg Biel
19b91d59d1
Allow renaming imports with as (#1923) 2023-08-30 13:36:02 +02:00
Laurenz
a71a2057f2 More type safety for spans 2023-08-29 17:35:35 +02:00
Laurenz
afc95ed19d Virtual path type
Fixes #1937
2023-08-22 14:21:04 +02:00
Laurenz
522708b9df Set new minimum serde version
1.0.184 does not ship with a precompiled binary anymore
2023-08-21 21:49:14 +02:00
Laurenz
3ab179ebd3 Restrict serde version 2023-08-19 20:06:01 +02:00
Laurenz
5fb5854ed8 Make AST borrowed 2023-08-19 19:44:08 +02:00
sitandr
2f81089995
Fix single prime in subscript (#1909)
* Fix single prime in subscript (a_' producing wrong result)

* Clippy
2023-08-10 21:36:05 +02:00
Laurenz
028d2f5308 Split markup and math shorthands for docs 2023-08-03 16:33:17 +02:00
Anton Wetzel
39e101f0af
enum ident one more then current start (#1824) 2023-08-03 00:35:26 +02:00
Laurenz
f39bfa4762 Enable ecow's serde feature for typst-syntax 2023-07-19 10:47:14 +02:00
Laurenz
f5953887c9 Extract syntax module into typst-syntax crate 2023-07-18 21:04:46 +02:00