47 Commits

Author SHA1 Message Date
PgBiel
af7e258f80 apply suggested improvements 2024-07-29 18:24:16 -03:00
PgBiel
93bd46da8f add parenthesized annotation linebreak support 2024-07-23 19:07:48 -03:00
PgBiel
46e4fbfac7 initial improvements to allow multiline annotations
- Improve tree search
- Improve annotation argument loop
2024-07-23 19:06:16 -03:00
PgBiel
e105cd1956 improve errors in annotations 2024-07-23 13:31:10 -03:00
PgBiel
c8994d0488 initial changes towards simpler syntax 2024-07-22 15:32:00 -03:00
PgBiel
457892cd7f improve some var names 2024-07-16 20:00:51 -03:00
PgBiel
a5d36d6931 fix annotation syntax in comments 2024-07-16 17:03:45 -03:00
PgBiel
fb77128423 decorator -> annotation 2024-07-16 17:02:08 -03:00
PgBiel
c1bb41dc9c new decorator syntax: '// @' 2024-07-16 16:49:03 -03:00
PgBiel
19f3047cf3 improve comments and formatting 2024-07-15 12:39:00 -03:00
PgBiel
5b05e2df15
Merge branch 'main' into warn-suppression 2024-07-15 11:55:30 -03:00
Yip Coekjan
4d8976b619
Fix lexer behavior on non-whitespace before ref (#4553) 2024-07-14 12:54:51 +00:00
PgBiel
ecb0ee51b1 fix newline counting
should probably fix the windows build
2024-06-27 18:06:49 -03:00
PgBiel
05a40ed43d lexer: make 'take_error' internal 2024-06-26 12:58:26 -03:00
PgBiel
65dc277fc5 minor decorator lexing improvements 2024-06-26 12:17:53 -03:00
PgBiel
14dfb3f630 create DecoratorMarker and DecoratorName 2024-06-26 12:17:53 -03:00
PgBiel
d35a563b3c use proper name for paren tokens 2024-06-26 12:17:53 -03:00
PgBiel
c7d97a7248 add doc comment regarding lexer subtrees 2024-06-26 12:17:53 -03:00
PgBiel
acdd33c754 remove redundant '-' identifier check 2024-06-26 12:17:53 -03:00
PgBiel
910af8322c proper decorator parsing
done directly in the lexer.
2024-06-26 12:17:53 -03:00
PgBiel
a320e92cfa lexer now returns nodes 2024-06-26 12:17:53 -03:00
PgBiel
a1d5861a58 don't swallow newlines in decorator lexing 2024-06-26 12:17:53 -03:00
PgBiel
9f9e8770b8 use lexer subtrees to parse decorators 2024-06-26 12:17:53 -03:00
PgBiel
9f9ba7ba5a separate DecoratorMarker from Decorator 2024-06-26 12:17:53 -03:00
PgBiel
ad6cc41261 fix decorator lexing with wrong offsets 2024-06-26 12:17:53 -03:00
PgBiel
1623a9135d initial decorator lexing 2024-06-26 12:17:53 -03:00
PgBiel
849bb632f7 decorator syntax 2024-06-26 12:17:53 -03: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