Skip to content

Clojure: Use ;; instead of ; for line comments - #115036

Merged
João Moreno (joaomoreno) merged 1 commit into
masterfrom
joao/plexus/double-semicolon-line-comments
Jan 26, 2021
Merged

João Moreno (joaomoreno) merged 1 commit into
masterfrom
joao/plexus/double-semicolon-line-comments

Conversation

@joaomoreno

Copy link
Copy Markdown
Contributor

Arne Brasseur (@plexus) says:

LISPs in general and Clojure in particular by convention uses double semicolons
for regular line comments. Single semicolons are reserved for trailing comments
at the end of a line, and are treated (aligned) differently in some editors,
notably Emacs.

LISPs in general and Clojure in particular by convention uses double semicolons
for regular line comments. Single semicolons are reserved for trailing comments
at the end of a line, and are treated (aligned) differently in some editors,
notably Emacs.
@joaomoreno

Copy link
Copy Markdown
Contributor Author

Arne Brasseur (@plexus) says:

This is something a lot of Calva users are complaining about, blaming Calva even though it's really an upstream issue: BetterThanTomorrow/calva#971

@joaomoreno

Copy link
Copy Markdown
Contributor Author

Alex Ross (@alexr00) says:

Thanks for the PR! Can you point me to some language documentation so I can learn more?

@joaomoreno

Copy link
Copy Markdown
Contributor Author

@joaomoreno

Copy link
Copy Markdown
Contributor Author

Arne Brasseur (@plexus) says:

Thanks for the quick merge!

@joaomoreno

Copy link
Copy Markdown
Contributor Author

ArturoDent says:

Arne Brasseur (@plexus) - purely as a very short-term workaround until the next release in a couple of weeks, you can change lineComment form with this extension: Custom Language Properties.

"custom-language-properties": {
  "clojure.comments.lineComment": ";;"
 },

@joaomoreno

Copy link
Copy Markdown
Contributor Author

Arne Brasseur (@plexus) Alex Ross (@alexr00) We have reverted the decision to extract extensions from the microsoft/vscode repo, so I've recreated Arne Brasseur (@plexus)'s PR from vscode-clojure, so we don't lose the discussion.

@joaomoreno
João Moreno (joaomoreno) merged commit 1f1ed78 into master Jan 26, 2021
@joaomoreno
João Moreno (joaomoreno) deleted the joao/plexus/double-semicolon-line-comments branch January 26, 2021 13:01
@joaomoreno João Moreno (joaomoreno) changed the title Use ;; instead of ; for line comments Clojure: Use ;; instead of ; for line comments Jan 26, 2021
Tshaka Lekholoane (tshakalekholoane) added a commit to tshakalekholoane/vscode-hy that referenced this pull request Jan 27, 2021
Tshaka Lekholoane (tshakalekholoane) added a commit to tshakalekholoane/vscode-hy that referenced this pull request Jan 27, 2021
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants