Skip to content

fix(formatting): remove the space after a function name - #129

Merged
DrRataplan merged 1 commit into
mainfrom
fix/no-space-after-function-name
May 20, 2026
Merged

DrRataplan merged 1 commit into
mainfrom
fix/no-space-after-function-name

Conversation

@DrRataplan

Copy link
Copy Markdown
Owner

Format this way:

declare function xxx() {
  (: … :)
};

This aligns with what Prettier does for JavaScript, which is a good prior art.

Closes #126 @line-o, what's your opinion?

@joewiz, thanks for the issue you filed!

Format this way:

```xquery
declare function xxx() {
  (: … :)
};
```

This aligns with what Prettier does for JavaScript, which is a good prior art.
@DrRataplan
DrRataplan requested a review from line-o May 20, 2026 08:05
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit ab6db6f):

https://prettier-plugin-xquery-demo--pr129-fix-no-space-after-u0fmlbf7.web.app

(expires Wed, 27 May 2026 08:05:51 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 05f844b4fde774e8f22615c0409beb01474e9378

@line-o line-o left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

@DrRataplan
DrRataplan merged commit c9b4614 into main May 20, 2026
7 of 9 checks passed
@DrRataplan
DrRataplan deleted the fix/no-space-after-function-name branch May 20, 2026 08:20
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FORMATTING] Extra space in FunctionDecl between EQName & ParamList

2 participants