Skip to content

fix: indent optional-chaining (?.) continuation lines in JS mode - #133

Open
dnspfio wants to merge 1 commit into
rtts:mainfrom
dnspfio:fix-optional-chaining-in-js-mode
Open

fix: indent optional-chaining (?.) continuation lines in JS mode#133
dnspfio wants to merge 1 commit into
rtts:mainfrom
dnspfio:fix-optional-chaining-in-js-mode

Conversation

@dnspfio

@dnspfio dnspfio commented Jun 29, 2026

Copy link
Copy Markdown

In <script> blocks, djhtml indents method-chain continuation lines starting with ., : , or ? , but not ?. (optional chaining) — so a line like ?.filter(...) was left at base level while sibling .map(...) lines were correctly indented.

Fix:

  • indent optional-chaining (?.) continuation lines in JS mode

Tests:

  • added a regression fixture to the JS test suite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant