119 Commits

Author SHA1 Message Date
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
2b442eae5e remove inner node 'capped_newlines' field 2024-07-15 18:23:36 -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
PgBiel
a74bbd8e8b current_kind -> current 2024-07-15 11:54:28 -03: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
PgBiel
c96bf9a280 dot 2024-06-27 19:08:22 -03:00
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
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
fe860f8b6b initial attached comment detection 2024-06-26 12:17:53 -03: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