summaryrefslogtreecommitdiff
path: root/crates/typst-syntax/src/ast.rs
AgeCommit message (Collapse)Author
2025-06-26Disallow empty labels and references (#5776) (#6332)Said A.
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-03-24Use `u64` instead of `usize` to store counter and enumeration item numbers, ↵Eduardo Sánchez Muñoz
so behavior does not vary from 64-bit to 32-bit platforms (#6026)
2025-02-26Improve clarity of `ast.rs` for newcomers to the codebase (#5784)Ian Wrzesinski
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com> Co-authored-by: T0mstone <39707032+T0mstone@users.noreply.github.com>
2025-01-29Resolve bound name of bare import statically (#5773)Laurenz
2025-01-23Just add MathText SyntaxKindIan Wrzesinski
2024-12-20Remove unused single quote shorthand (#5609)Ian Wrzesinski
2024-12-17Rename `pattern` to `tiling` (#5590)Laurenz
2024-09-26Spelling (#5020)Josh Soref
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-22Reduce typo count. (#4923)Bruce Mitchener
2024-08-20Fix typos (#4784)Max
2024-08-09Split shorthands into math and markup, add tilde shorthand (#4706)Max
2024-05-30Add nested import syntax (#4228)Tulio Martins
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-29Fix `Default` impls for AST nodes (#4288)Laurenz
2024-03-09Update changelog and roadmap (#3594)Laurenz
2024-03-03Fix some comments (#3541)geekvest
Signed-off-by: geekvest <cuimoman@sohu.com>
2024-03-01Provide more fine-grained spans in raw blocks (#3257)Myriad-Dreamin
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-02-29Add `depth` and `offset` field to `heading` (#3038)tingerrr
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-02-28Make use of `is_some_and` where applicable (#3523)Laurenz
2024-02-27New context system (#3497)Laurenz
2024-02-21Destructuring improvements (#3463)Laurenz
2024-01-30Remove an unnecessary clone in loop evaluation (#3297)Leedehai
2023-11-27Fix trailing comma of function call in math mode (#2772)T0mstone
2023-11-19Streamline importsLaurenz
2023-11-02Implement dict key interpolation (#2559)Matt Fellenz
2023-10-12MathAttach::primes: account for possible hash before base (#2363)bluebear94
Fixes #2358.
2023-10-09Hashtag -> HashLaurenz
2023-10-09Use/allow U+2212 MINUS SIGN instead of U+002D HYPHEN MINUS everywhere (#2318)MALO
2023-09-16Fix missing capturing of assignmentsLaurenz
The previous commit was a bit overambitious. The left-hand side of assignments should actually be fully captured: Argument lists in `at` calls can contain captured variables. And if the assigned variable itself is captured, then the function is faulty anyway. (And we ensure the correct error message by capturing it.) Fixes #2169
2023-09-16Fix incremental compilation by fixing closure capturingLaurenz
Fixes #1958
2023-09-04Update ast.rs (#2057)KillTheMule
Rust 1.74 warns about this, noting it will be a hard error soon. Quite annoying when developing on an unstable compiler now already ;)
2023-08-30Allow renaming imports with `as` (#1923)Pg Biel
2023-08-19Make AST borrowedLaurenz
2023-08-10Fix single prime in subscript (#1909)sitandr
* Fix single prime in subscript (a_' producing wrong result) * Clippy
2023-08-03Split markup and math shorthands for docsLaurenz
2023-07-18Extract syntax module into typst-syntax crateLaurenz