Skip to content

Commit

Permalink
minor - comments indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oakmac committed Oct 29, 2024
1 parent f805d71 commit e7d4905
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/standard-clojure-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,7 @@
const useStandardReaderConditional = onlyOneRequirePerPlatform(ns.requires)

if (!allRequiresUnderOnePlatform) {
// use standard reader conditional #?(
// use standard reader conditional #?(
if (useStandardReaderConditional) {
while (platformIdx < numPlatforms) {
const platform = reqPlatforms[platformIdx]
Expand All @@ -3023,7 +3023,7 @@

platformIdx = inc(platformIdx)
}
// use splicing reader conditional #?@(
// use splicing reader conditional #?@(
} else {
while (platformIdx < numPlatforms) {
const platform = reqPlatforms[platformIdx]
Expand Down Expand Up @@ -3409,7 +3409,7 @@
ignoreNodesStartId = nextIgnoreNode.id
ignoreNodesEndId = closingNode.id

// if a node without children, then just don't format it
// if a node without children, then just don't format it
} else {
const nextImmediateNode = nodesArr[inc(idx)]
ignoreNodesStartId = nextImmediateNode.id
Expand Down Expand Up @@ -3747,8 +3747,8 @@
if (currentNodeIsWhitespace && (isLastNode || !outputTxtContainsChars)) {
skipPrintingThisNode = true

// do not print a comment node on the last line of the ns form
// (this is handled by the nsFormat function)
// do not print a comment node on the last line of the ns form
// (this is handled by the nsFormat function)
} else if (isCommentNode(node) && parsedNs.commentOutsideNsForm === node.text && lineIdx === lineIdxOfClosingNsForm) {
skipPrintingThisNode = true
} else if (currentNodeIsWhitespace && lineIdx === lineIdxOfClosingNsForm) {
Expand Down

0 comments on commit e7d4905

Please sign in to comment.