852 Commits

Author SHA1 Message Date
PgBiel
866c5364a0 simplify decorator arguments in the AST
they are always strings so just return Str. We can switch back to Expr in the future, if we need it.
2024-06-27 19:07:45 -03:00
PgBiel
181c633fe5 improve tree search 2024-06-27 18:27:43 -03: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
eec6a3a0d1 diag ids: remove categories, improve docs 2024-06-26 12:55:36 -03:00
PgBiel
afaa45e0e0 improve identifier naming, remove error id
not gonna need error ids for now
2024-06-26 12:37:51 -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
b318b0ae99 satisfy clippy 2024-06-26 12:17:53 -03:00
PgBiel
c3c3ea9bfa allow same line decorator search
no idea why this is needed but it is
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
16859f57e2 search for 'allow' decorators 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
3e69560267 initial decorator parsing in markup 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
PgBiel
6f3166dc73 fix deduplication of warnings with different tracepoints 2024-06-26 12:17:53 -03:00
PgBiel
33588ab239 add and use Sink::extend_tracked
avoids an unnecessary sink extension if the sink is empty
2024-06-26 12:17:53 -03:00
PgBiel
b559fc20b7 create Engine::tracepoint
adds tracepoints to returned errors and warnings automatically
2024-06-26 12:17:53 -03:00
PgBiel
e69c58a234 fix decorator lookup next to the span itself 2024-06-26 12:17:53 -03:00
PgBiel
26ae1d3c27 fix local sink on call
warnings now get tracepoints
2024-06-26 12:17:53 -03:00
PgBiel
3823f560c5 initial attempt at a local sink on call 2024-06-26 12:17:53 -03:00
PgBiel
e196e45c31 basic suppression detection 2024-06-26 12:17:53 -03:00
PgBiel
fe860f8b6b initial attached comment detection 2024-06-26 12:17:53 -03:00
PgBiel
f8958961cb warn identifier as string, categories 2024-06-26 12:17:53 -03:00
PgBiel
05def04625 initial diagnostic identifiers 2024-06-26 12:17:53 -03:00
Laurenz
45366c0112
Bump Rust in CI (#4445) 2024-06-24 20:11:11 +00:00
Laurenz
e6b5314870
Split up paragraph layout into more files (#4443) 2024-06-24 18:33:41 +00:00
Yip Coekjan
e90c30903d
Better error message when package version not exists (#4429) 2024-06-22 10:33:33 +00:00
Eric Biedert
09e3bbd3b4
Fix luma to CMYK conversion (#4425) 2024-06-22 09:09:36 +00:00
Eric Biedert
381a82e764
Fix color mixing and gradients in luma space (#4424)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-22 09:09:28 +00:00
Yip Coekjan
0fbec82035
Hint for shadowed std functions (#4402)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-22 09:02:53 +00:00
JPichel
49f1c85c18
Add Galician & catalan translations (#4414) 2024-06-22 09:02:38 +00:00
+merlan #flirora
781eea632f
Add message when trying to access a field that is not set (#4399)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-22 08:59:52 +00:00
Clemens Koza
3d3489fbae
Allow "imprecise" bounds for the compiler version (#4394) 2024-06-22 08:41:19 +00:00
Yip Coekjan
ddce645ef0
Add named symbols: , , , (#4267) 2024-06-22 08:40:10 +00:00
Laurenz
a2c9807159
Fix backlinks (#4409) 2024-06-17 12:15:24 +00:00
Laurenz
0d93ccd4bf
Compress CMaps (#4406) 2024-06-16 10:05:13 +00:00
Laurenz Stampfl
feedfe80cb
Improve subsetting (#4373)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-16 09:38:33 +00:00
Malo
34550220ae
Add hints to array destructuring error messages (#4400) 2024-06-16 09:35:18 +00:00
Laurenz
f25308d1eb
Tight lists only attach to preceding paragraphs, not blocks anymore (#4396) 2024-06-16 07:48:03 +00:00
Laurenz Stampfl
1110b93564
Add support for COLRv1 emojis (#4371) 2024-06-16 07:47:13 +00:00
Laurenz
9a45d948f9
Paragraph spacing property (#4390) 2024-06-14 08:49:44 +00:00