Skip to content

[swift] Fix invalid swift token OSXApplicationExtension#6654

Merged
adangel merged 1 commit into
pmd:mainfrom
adangel:chore-fix-swift-token
May 8, 2026
Merged

[swift] Fix invalid swift token OSXApplicationExtension#6654
adangel merged 1 commit into
pmd:mainfrom
adangel:chore-fix-swift-token

Conversation

@adangel

@adangel adangel commented May 8, 2026

Copy link
Copy Markdown
Member

Needed for upgrading antlr, see #4972 / #6621

Note: Unfortunately, the generated parser is public API - removing a token is a breaking change. We need #5136 but for the antlr based language modules.

So, this means, the hyphen on OSXApplicationExtension- has to stay, so that this is a token on its own (there is already OSXApplicationExtension).

Eventually, these tokens should be removed, they are not keywords and not even context sensitive keywords in swift.

Needed for upgrading antlr, see pmd#4972 / pmd#6621
@adangel adangel added this to the 7.25.0 milestone May 8, 2026
@adangel adangel added the in:grammar About the grammar of a lexer or parser, eg, a parse/lex exception label May 8, 2026
@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-05-08 09:52:31+00:00 for f3f7a2b)

adangel added a commit to UncleOwen/pmd that referenced this pull request May 8, 2026
@adangel adangel merged commit 52a8bf6 into pmd:main May 8, 2026
13 checks passed
@adangel adangel deleted the chore-fix-swift-token branch May 8, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:grammar About the grammar of a lexer or parser, eg, a parse/lex exception

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant