Branch: refs/heads/main
Home: https://github.com/pmd/pmd
Commit: 15823d277bb808900f9c17292cc6ad31e923391a
https://github.com/pmd/pmd/commit/15823d277bb808900f9c17292cc6ad31e923391a
Author: Peter Paul Bakker <[email protected]>
Date: 2026-05-07 (Thu, 07 May 2026)
Changed paths:
M .gitattributes
M pmd-kotlin/src/main/antlr4/net/sourceforge/pmd/lang/kotlin/ast/Kotlin.g4
M
pmd-kotlin/src/main/antlr4/net/sourceforge/pmd/lang/kotlin/ast/KotlinLexer.g4
M
pmd-kotlin/src/test/java/net/sourceforge/pmd/lang/kotlin/ast/KotlinParserMultiLineStringTest.java
M
pmd-kotlin/src/test/java/net/sourceforge/pmd/lang/kotlin/ast/KotlinParserTests.java
A
pmd-kotlin/src/test/resources/net/sourceforge/pmd/lang/kotlin/ast/testdata/MultiDollarLineStringRef.kt
A
pmd-kotlin/src/test/resources/net/sourceforge/pmd/lang/kotlin/ast/testdata/MultiDollarLineStringRef.txt
Log Message:
-----------
fix(kotlin): support multi-dollar string interpolation (KEEP-375, issue 6648)
Kotlin 2.2 introduces multi-dollar string interpolation: a string
prefixed with N dollar signs requires N dollars to start an
interpolation sequence (e.g. $$"..." needs $$ for interpolation).
Three grammar issues are fixed:
- Inside mode lacked MultiDollarPrefix, causing parse errors in
function and annotation arguments
- LineString mode did not check multiLineMinDollars when matching
LineStrRef and LineStrExprStart tokens
- lineStringLiteral parser rule was missing MultiDollarPrefix
Tests added:
- Regression tests for the two reported cases (function arg,
annotation arg)
- KEEP-375 spec examples as parser smoke tests
- Tree dump test for LineStrRef and LineStrExprStart in multi-dollar
context (moved to KotlinParserMultiLineStringTest)
References: https://github.com/pmd/pmd/issues/6648
Spec:
https://github.com/Kotlin/KEEP/blob/main/proposals/KEEP-0375-dollar-escape.md
Commit: decb6f69eea448e64f833ebee1469eac85e985b1
https://github.com/pmd/pmd/commit/decb6f69eea448e64f833ebee1469eac85e985b1
Author: Peter Paul Bakker <[email protected]>
Date: 2026-05-07 (Thu, 07 May 2026)
Changed paths:
M .gitattributes
Log Message:
-----------
revert: remove .gitattributes change (not part of this PR)
Commit: fa762bb906f95b4e4653df45591240626d6d98c5
https://github.com/pmd/pmd/commit/fa762bb906f95b4e4653df45591240626d6d98c5
Author: Andreas Dangel <[email protected]>
Date: 2026-05-08 (Fri, 08 May 2026)
Changed paths:
M docs/pages/release_notes.md
Log Message:
-----------
[doc] Update release notes (#6648, #6653)
Commit: ec446beffe92701ce2e11168a3ba3634ce525ad7
https://github.com/pmd/pmd/commit/ec446beffe92701ce2e11168a3ba3634ce525ad7
Author: Andreas Dangel <[email protected]>
Date: 2026-05-08 (Fri, 08 May 2026)
Changed paths:
M docs/pages/release_notes.md
M pmd-kotlin/src/main/antlr4/net/sourceforge/pmd/lang/kotlin/ast/Kotlin.g4
M
pmd-kotlin/src/main/antlr4/net/sourceforge/pmd/lang/kotlin/ast/KotlinLexer.g4
M
pmd-kotlin/src/test/java/net/sourceforge/pmd/lang/kotlin/ast/KotlinParserMultiLineStringTest.java
M
pmd-kotlin/src/test/java/net/sourceforge/pmd/lang/kotlin/ast/KotlinParserTests.java
A
pmd-kotlin/src/test/resources/net/sourceforge/pmd/lang/kotlin/ast/testdata/MultiDollarLineStringRef.kt
A
pmd-kotlin/src/test/resources/net/sourceforge/pmd/lang/kotlin/ast/testdata/MultiDollarLineStringRef.txt
Log Message:
-----------
[kotlin] Fix #6648: Multi-dollar interpolation for regular strings (#6653)
Compare: https://github.com/pmd/pmd/compare/f0c72a8b8306...ec446beffe92
To unsubscribe from these emails, change your notification settings at
https://github.com/pmd/pmd/settings/notifications
_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits