astrale-sharp
ad4ef68a11
Lexer hint ( #4346 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-12 12:00:22 +00:00
+merlan #flirora
20475ab0bf
Add hint when string is used in place of label ( #4330 )
2024-06-11 09:08:30 +00:00
Yip Coekjan
ada0f5da65
Hint for labels in code mode ( #4319 )
2024-06-04 15:33:08 +00:00
Laurenz
8a9c45e7d4
Fix race condition in interners ( #4300 )
2024-05-30 12:46:47 +00:00
Tulio Martins
06a925a0ee
Add nested import syntax ( #4228 )
...
Co-authored-by: LuizAugustoPapa <luiz.papa@aluno.puc-rio.br>
Co-authored-by: PepinhoJp <pepinho.jp@gmail.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-05-30 07:56:40 +00:00
Laurenz
54604ccb6b
Fix `Default` impls for AST nodes ( #4288 )
2024-05-29 14:32:20 +00:00
Laurenz
06433bc95f
Reorder syntax kinds ( #4287 )
2024-05-29 13:14:01 +00:00
Wenzhuo Liu
4ae376f2c7
Fix raw block has extra space when end with backtick ( #4162 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-17 08:35:51 +00:00
Laurenz
2d32ac73b6
Replace all `Prehashed` with `LazyHash` ( #4127 )
2024-05-13 17:54:34 +00:00
Leedehai
44bc51ba4f
Let let-binding raise error on unexpected keywords ( #4034 )
2024-04-30 12:30:38 +00:00
QuarticCat
9f8cb27aef
Fix suffix computation for Source::replace ( #3989 )
2024-04-30 12:22:38 +00:00
Ian Wrzesinski
45245f0695
Fix empty 2-d math args with whitespace/trivia ( #3786 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-04-19 14:31:45 +00:00
Leedehai
9289d9334b
SyntaxKind::Eof => SyntaxKind::End to better express its usage ( #3872 )
2024-04-08 10:21:06 +00:00
Leedehai
8c28f67504
Let the lexer respect linebreaks within inline raw ( #3756 )
2024-04-04 08:18:37 +00:00
Leedehai
0619ae98a8
Fix newline parsing behavior in code mode ( #3780 )
2024-04-03 09:01:50 +00:00
Laurenz
b3615ccd49
A few CI and crate config changes ( #3852 )
2024-04-02 14:16:44 +00:00
Matthew Toohey
dee8ccf048
Add side parameter to leaf_at ( #3767 )
2024-04-01 20:22:54 +00:00
Laurenz
faca50a240
Final touches ( #3678 )
2024-03-15 14:47:41 +00:00
Laurenz
1d027ff6d2
Fix parsing of parenthesized imports ( #3633 )
2024-03-12 10:47:48 +00:00
Laurenz
a2d097686f
Update changelog and roadmap ( #3594 )
2024-03-09 16:56:56 +00:00
Laurenz
a558fd232b
Add `typst init` command ( #3544 )
2024-03-06 11:33:35 +00:00
geekvest
098ef5acbb
Fix some comments ( #3541 )
...
Signed-off-by: geekvest <cuimoman@sohu.com>
2024-03-03 14:50:19 +00:00
Myriad-Dreamin
030041466b
Provide more fine-grained spans in raw blocks ( #3257 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-03-01 09:17:41 +00:00
tingerrr
5a03c818c8
Add `depth` and `offset` field to `heading` ( #3038 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-02-29 08:51:56 +00:00
Laurenz
8d63b0479c
Make use of `is_some_and` where applicable ( #3523 )
2024-02-28 14:24:50 +00:00
Laurenz
0aa9254356
Fix bugs with parenthesized expression parsing ( #3505 )
2024-02-27 11:12:43 +00:00
Laurenz
9646a132a8
Fix parser bug with space before colon ( #3504 )
2024-02-27 10:43:02 +00:00
Laurenz
145723b1ef
New context system ( #3497 )
2024-02-27 10:05:16 +00:00
Laurenz
be49935753
Destructuring improvements ( #3463 )
2024-02-21 08:38:47 +00:00
Laurenz
0fb2a67484
Introduce `SyntaxSet` ( #3450 )
2024-02-18 13:28:00 +00:00
Natsu Kagami
e611021802
lexer: Allow emphasis in Korean text without spaces ( #3397 )
2024-02-12 14:42:27 +00:00
spore
70b354e887
Support reading input from stdin ( #3339 )
2024-02-05 13:05:26 +00:00
Leedehai
a603729336
Remove an unnecessary clone in loop evaluation ( #3297 )
2024-01-30 09:30:34 +00:00
Peng Guanwen
269860c571
Do not parse special spaces to Space Token ( #3267 )
2024-01-29 10:46:41 +00:00
Heinenen
ad901c2cdb
Syntax error if function name is parenthesized ( #3058 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-01-16 08:52:56 +00:00
Nathan Varner
527d63ed25
Don't stop parsing markup text for braces ( #3112 )
2024-01-02 09:08:07 +00:00
Heinenen
c27b9e2b0f
Don't allow nested line comment inside block comment ( #3048 )
2023-12-30 13:01:05 +00:00
Sébastien d'Herbais de Thun
c4d9b0c3d8
New performance timings ( #3096 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-12-30 12:36:15 +00:00
Carson McManus
754e1788b2
Fix a parser bug causing `x.)` to be treated as a field access ( #2962 )
2023-12-18 12:33:29 +01:00
Laurenz
713cde1136
Make workspace inheriting consistent
2023-11-27 16:54:55 +01:00
T0mstone
76c5ca051e
Fix trailing comma of function call in math mode ( #2772 )
2023-11-27 16:03:11 +01:00
danieleades
e36a18b991
Use clippy workspace lints and inline format args ( #2771 )
2023-11-27 11:34:14 +01:00
Laurenz
85b1d1d4dd
Rework `Vt` into `Engine`
...
- Moves as much data out of the `Vm`
- Removes duplication with call_vm and call_vt flavours
- Uses tracked chain instead of fixed int for determining max nesting depth
- This means that nesting checks now generalizes to layout and realization, to detect crashing show rules and overly nested layouts
2023-11-26 19:03:21 +01:00
Laurenz
7eebafa783
Merge `typst` and `typst-library`
2023-11-24 12:30:02 +01:00
Laurenz
36c7301608
Tidy up some imports
2023-11-21 15:20:49 +01:00
Laurenz
2da619e17c
Streamline imports
2023-11-19 16:34:38 +01:00
Peng Guanwen
f4a81091f7
Lexer change: Allow emphasis in CJK text without spaces ( #2648 )
2023-11-15 15:01:15 +01:00
Sébastien d'Herbais de Thun
d77356a16f
Fix potential line splitting issue in `raw` ( #2674 )
2023-11-13 16:56:51 +01:00
Laurenz
4794bd35fa
Switch to workspace dependencies
2023-11-08 12:56:35 +01:00
tingerrr
5f922abfd8
Add hints for invalid identifier errors ( #2583 )
2023-11-07 12:14:20 +01:00
Samuel Tardieu
e550f0a8f7
Prevent silent swallowing of return expressions trailing arguments ( #2545 )
...
Fixes #2104
2023-11-06 21:42:38 +01:00
Matt Fellenz
8fd546760c
Implement dict key interpolation ( #2559 )
2023-11-02 17:08:08 +01:00
Fritz Rehde
c3114fa380
Fixed typos ( #2524 )
2023-10-30 23:25:28 +01:00
Laurenz
29130a26f8
Linebreaking for links
2023-10-29 00:52:15 +02:00
Laurenz
208711203e
Fix tag list order
2023-10-19 19:57:47 +02:00
Sébastien d'Herbais de Thun
37a988af83
Replace `Vec` with `EcoVec`, removed `Box` ( #2420 )
2023-10-17 20:50:36 +02:00
bluebear94
d3b62bd02e
MathAttach::primes: account for possible hash before base ( #2363 )
...
Fixes #2358 .
2023-10-12 10:19:07 +02:00
Laurenz
f474639ebe
Hashtag -> Hash
2023-10-09 16:04:10 +02:00
MALO
0804a9e25d
Use/allow U+2212 MINUS SIGN instead of U+002D HYPHEN MINUS everywhere ( #2318 )
2023-10-09 15:30:40 +02:00
Laurenz
2a19e7f4dc
Bump ecow
2023-10-09 15:00:07 +02:00
Laurenz
d7928a8ea3
Extract IDE crate
2023-09-26 17:12:18 +02:00
Laurenz
7a46a85d3e
Improve span stability after incremental parsing
2023-09-19 16:53:59 +02:00
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