summaryrefslogtreecommitdiff
path: root/crates/typst-syntax/src/parser.rs
AgeCommit message (Collapse)Author
2025-01-31Change the default math class of U+22A5 ⊥ UP TACK to Normal (#5714)Malo
2025-01-23Just add MathText SyntaxKindIan Wrzesinski
2025-01-23Ignore shebang at start of file (#5702)T0mstone
2025-01-23Support syntactically directly nested list, enum, and term list (#5728)wznmickey
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-23Fix delimiter unparen syntax (#5739)Ian Wrzesinski
2025-01-16Fix list indent when starting at an open bracket (#5677)Ian Wrzesinski
2025-01-09Better math argument parsing (#5008)Max
2024-12-17Rename `pattern` to `tiling` (#5590)Laurenz
2024-12-08Convert unopened square-brackets into a hard error (#5414)Ian Wrzesinski
2024-12-05Bump Rust to 1.83 (#5534)Laurenz
2024-11-04Refactor Parser (#5310)Laurenz
2024-11-0318. Restore list indent behaviorIan Wrzesinski
2024-11-0317. Replace while loop closures and Parser::end() to use SyntaxSetIan Wrzesinski
2024-11-0316. Compress with_mode and with_nl_mode to reduce rightward driftIan Wrzesinski
2024-11-0315. Convert Markup mode to use newline modesIan Wrzesinski
(And break out Newline info into separate struct)
2024-11-01Disallow space between ident and paren in set rule (#5269)Ian Wrzesinski
2024-10-3114. Update 'maybe_wrap_in_math' to remove 'wrap_within' and 'post_process'!Ian Wrzesinski
2024-10-3113. Reorder functions to avoid jumping around when reading code. No actual ↵Ian Wrzesinski
changes.
2024-10-3112. Add the Token type and replace lex/skip/save methodsIan Wrzesinski
2024-10-3111. Add Parser::finish_intoIan Wrzesinski
2024-10-3110. Change parser modes using closures instead of manual stacksIan Wrzesinski
2024-10-319. Parse math field access in the lexerIan Wrzesinski
2024-10-318. Create Raw nodes entirely within the lexerIan Wrzesinski
2024-10-317. Return SyntaxNodes from the LexerIan Wrzesinski
2024-10-316. Reduce size of memoization map stateIan Wrzesinski
2024-10-315. Refactor parser memoization to localize functionalityIan Wrzesinski
2024-10-314. Rename convert to convert_and_eatIan Wrzesinski
2024-10-313. Add typst-syntax README and parser commentsIan Wrzesinski
2024-10-27Split out four new crates (#5302)Laurenz
2024-10-22Syntax set macro (#5138)Ian Wrzesinski
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-26Spelling (#5020)Josh Soref
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-02Parenthesized imports (#4869)Sébastien d'Herbais de Thun
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-09Split shorthands into math and markup, add tilde shorthand (#4706)Max
2024-08-08Bail out of reparse in `expr_with_paren` if we land on a different char (#4577)+merlan #flirora
2024-07-08Primes should not further raise next superscript's position (#4492)Leedehai
Co-authored-by: Ian Wrzesinski <133046678+wrzian@users.noreply.github.com>
2024-06-12Lexer hint (#4346)astrale-sharp
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-04Hint for labels in code mode (#4319)Yip Coekjan
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-04-30Let let-binding raise error on unexpected keywords (#4034)Leedehai
2024-04-19Fix empty 2-d math args with whitespace/trivia (#3786)Ian Wrzesinski
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-04-08SyntaxKind::Eof => SyntaxKind::End to better express its usage (#3872)Leedehai
2024-04-03Fix newline parsing behavior in code mode (#3780)Leedehai
2024-03-12Fix parsing of parenthesized imports (#3633)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-28Make use of `is_some_and` where applicable (#3523)Laurenz
2024-02-27Fix bugs with parenthesized expression parsing (#3505)Laurenz
2024-02-27Fix parser bug with space before colon (#3504)Laurenz
2024-02-27New context system (#3497)Laurenz
2024-02-21Destructuring improvements (#3463)Laurenz