Scalameta v4.9.2
github-actions
released this
12 Mar 22:28
·
76 commits
to refs/heads/main
since this release
Features
- parse literals with unary operands as interpreted values, with unary pre-applied
- ScalametaParser: parse numbers with unary applied (#3618) @kitbellew
- Scalameta: undo #3623, semantic and not syntactic (#3630) @kitbellew
- ScalametaParser: split numericLiteral from literal (#3629) @kitbellew
- ScalametaParser: fail if literal looks like apply (#3623) @kitbellew
- ScalametaParser: special float handler, like ints (#3620) @kitbellew
- Token: KwTrue/KwFalse extends Constant[Boolean] (#3621) @kitbellew
- ScalametaParser.simpleExpr: don't catch in "rest" (#3622) @kitbellew
- {Lit,TreeSyntax}Suite: more literal constant tests (#3619) @kitbellew
- Support quoted type variables in Dialect and ScalametaParser (#3614) @kitbellew
- Dialects: add scala34 dialect (#3612) @kitbellew
Bug fixes
- check if syntax-like identifiers are backquoted
- ScalametaParser: check
$
not backquoted in macro (#3648) @kitbellew - Keywords: define generic matcher replacing Ident (#3641) @kitbellew
- TreeSyntax: add methods to print a name backquoted (#3647) @kitbellew
- MacroSuite: split as separate tests, use shortcuts (#3646) @kitbellew
- Keywords: match star identifier (#3645) @kitbellew
- Keywords: match allowQuestionMarkAsTypeWildcard (#3639) @kitbellew
- ScalametaParser: refactor importWildcardOrName (#3644) @kitbellew
- ScalametaParser: refactor pattern3 (#3643) @kitbellew
- ScalametaParser: use token type match, not unapply (#3642) @kitbellew
- Keywords: match for allowPostfixStarVarargSplices (#3640) @kitbellew
- Keywords: match for pattern alternatives, or not (#3638) @kitbellew
- Keywords: match for allowStarAsTypePlaceholder (#3637) @kitbellew
- ScalametaParser: define VarArgTypeParam matcher (#3636) @kitbellew
- Keywords: extract common base for all SoftKeywords (#3635) @kitbellew
- TreeSyntax: isEscapableSoftKeyword as map of Class (#3633) @kitbellew
- ScalametaParser: add extra
expect[]
methods (#3634) @kitbellew - Add tests with syntax-like backquoted identifiers (#3632) @kitbellew
- Test backquoted "leading infix" lookalike (#3624) @kitbellew
- ScalametaParser: check
- ScannerTokens: add RegionLine if indented further (#3628) @kitbellew
- ScannerTokens: yet another leading infix fix (#3606) @kitbellew
- ScannerTokens: symbolic infix check to common (#3608) @kitbellew
- Chars: move from tokenizers to common (#3609) @kitbellew
Miscellaneous
- Mima: allow primary Dialect.this constructor (#3616) @kitbellew
- Mima: slightly refactor determining accessibility (#3615) @kitbellew
- Trees: define Stat.TypeDef for {Decl,Defn}.Type (#3613) @kitbellew
- LegacyScanner: clarify misleading variable name (#3611) @kitbellew
- ScalametaParser: improve selector parsing (#3607) @kitbellew
- doc: quasiquote now preserve comments (#3572) @unarist
Build updates
- Update scalafmt-core to 3.8.0 (#3627) @scalameta-bot
- Update sbt, scripted-plugin to 1.9.9 (#3626) @scalameta-bot
- Update coursier to 2.1.9 (#3625) @scalameta-bot