34 Commits

Author SHA1 Message Date
Eduardo Sánchez Muñoz
38213ed534
Use u64 instead of usize to store counter and enumeration item numbers, so behavior does not vary from 64-bit to 32-bit platforms (#6026) 2025-03-24 18:16:33 +00:00
Ian Wrzesinski
0b8b7d0f23 Just add MathText SyntaxKind 2025-01-23 16:28:29 -05:00
T0mstone
b7546bace7
Ignore shebang at start of file (#5702) 2025-01-23 13:05:12 +00:00
Max
be6629c7cb
Better math argument parsing (#5008) 2025-01-09 10:49:06 +00:00
Ian Wrzesinski
ef4fc040b2
Improve raw trimming (#5541) 2024-12-11 11:31:04 +00:00
wznmickey
bb0c814095
Forbid base prefix for numbers with a unit (#5548)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-09 10:56:42 +00:00
Ian Wrzesinski
2c9728f53b 18. Restore list indent behavior 2024-11-03 22:04:06 -05:00
Ian Wrzesinski
26c61be1dc 15. Convert Markup mode to use newline modes
(And break out Newline info into separate struct)
2024-11-03 20:28:49 -05:00
Ian Wrzesinski
88d86714a1 9. Parse math field access in the lexer 2024-10-31 18:26:12 -04:00
Ian Wrzesinski
09975d1133 8. Create Raw nodes entirely within the lexer 2024-10-31 18:26:12 -04:00
Ian Wrzesinski
1cecae0333 7. Return SyntaxNodes from the Lexer 2024-10-31 18:26:12 -04: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
Yip Coekjan
4d8976b619
Fix lexer behavior on non-whitespace before ref (#4553) 2024-07-14 12:54:51 +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
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
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
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
Laurenz
8d63b0479c
Make use of is_some_and where applicable (#3523) 2024-02-28 14:24:50 +00:00
Laurenz
145723b1ef
New context system (#3497) 2024-02-27 10:05:16 +00:00
Natsu Kagami
e611021802
lexer: Allow emphasis in Korean text without spaces (#3397) 2024-02-12 14:42:27 +00:00
Peng Guanwen
269860c571
Do not parse special spaces to Space Token (#3267) 2024-01-29 10:46:41 +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
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
29130a26f8 Linebreaking for links 2023-10-29 00:52:15 +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
f5953887c9 Extract syntax module into typst-syntax crate 2023-07-18 21:04:46 +02:00