Is a comment between the function parenthseses and curly brackets considered a bad practice?

Asked by Victor Engmark

Given a file like this:

#!/usr/bin/env bash
foo() # subject

The curly brackets are red in VIM 7.3. If I remove the comment on the second line, the curly brackets change to turquoise. Is this intentional - some sort of warning of bad style?

I'm pretty sure the two are be semantically equivalent.

Question information

English Edit question
Ubuntu vim Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

Looks fine to me, looks clearer imho

Can you help with this problem?

Provide an answer of your own, or ask Victor Engmark for more information if necessary.

To post a message you must log in.