104 Commits

Author SHA1 Message Date
Ian Wrzesinski
16cc7eb472 5. Refactor parser memoization to localize functionality 2024-10-31 18:26:12 -04:00
Ian Wrzesinski
54eadb65a9 4. Rename convert to convert_and_eat 2024-10-31 18:26:12 -04:00
Ian Wrzesinski
a764aa4192 3. Add typst-syntax README and parser comments 2024-10-31 18:26:12 -04:00
Abdul-Rahman Sibahi
b969c01b28
Replace once_cell's Lazy as much as possible (#4617)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 11:52:11 +00:00
Laurenz
be7cfc85d0
Split out four new crates (#5302) 2024-10-27 18:04:55 +00:00
Ian Wrzesinski
b8034a3438
Syntax set macro (#5138)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-22 13:25:52 +00:00
Laurenz
6257e4d6cf
More robust glyph drawing (#5159) 2024-10-10 11:59:00 +00:00
Armin Brauns
deb0308980
Fix "thumbnail" key in manifest files not being optional (#5122) 2024-10-07 08:22:59 +00:00
Josh Soref
ca1f749c08
Spelling (#5020)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-26 17:32:55 +00:00
Bruce Mitchener
f283995c3d
Reduce typo count. (#4923) 2024-09-22 12:14:56 +00:00
Sébastien d'Herbais de Thun
1997db00f3
Parenthesized imports (#4869)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-02 13:27:33 +00:00
PgBiel
238f1fad49
Fix docstring in package manifest code (#4801) 2024-08-22 10:38:54 +00:00
Max
cefca7a7d8
Fix typos (#4784) 2024-08-20 15:12:12 +00:00
Yip Coekjan
ccd4524106
Fix lexer on sth followed by comments (#4739) 2024-08-15 19:53:15 +00:00
Max
b07607d35e
Split shorthands into math and markup, add tilde shorthand (#4706) 2024-08-09 07:41:01 +00:00
+merlan #flirora
a88899ed75
Bail out of reparse in expr_with_paren if we land on a different char (#4577) 2024-08-08 16:06:22 +00:00
Myriad-Dreamin
a3f3a1a833
Change the signature of World::main (#4531)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-14 13:14:21 +00:00
Yip Coekjan
4d8976b619
Fix lexer behavior on non-whitespace before ref (#4553) 2024-07-14 12:54:51 +00:00
Laurenz
be516867c8
Spans for cross-file go-to-definition (#4539) 2024-07-11 14:24:28 +00:00
tingerrr
3c22902d6c
Add missing keys to manifest types (#4494) 2024-07-10 09:44:13 +00:00
Leedehai
d1c7d08893
Primes should not further raise next superscript's position (#4492)
Co-authored-by: Ian Wrzesinski <133046678+wrzian@users.noreply.github.com>
2024-07-08 19:32:58 +00:00
Yip Coekjan
e90c30903d
Better error message when package version not exists (#4429) 2024-06-22 10:33:33 +00:00
Clemens Koza
3d3489fbae
Allow "imprecise" bounds for the compiler version (#4394) 2024-06-22 08:41:19 +00:00
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