On 8/3/18 at 7:31 PM, [email protected] (David Donachie) wrote:

Does that mean that the following section in
<http://www.barebones.com/support/develop/clm.html#BBLMCommentPrefixDefault>
Many languages group statements by enclosing them in block delimiters — { … } in C-family languages, . These keys specify the opening and closing tokens for such blocks. BBEdit detects blocks (even nested ones) and makes it possible to fold them.

Is wrong?

Though that statement is correct _per se_, please note from the section heading above:

  http://www.barebones.com/support/develop/clm.html#StructuralElements

  ## Structural Elements ##

  The simple-string keys in this section guide BBEdit in identifying
  functions for the function pop-up, and statement blocks for folding.

  [...]

that the 'statement blocks' in question belong to _functions_ rather than comments. :-)

Next:

So I have to persuade it to see these blocks as functions with no function names (so as not to try and index them)?

I strongly recommend against misusing the statement block mechanics to interpret comments.

(NB: As an aside, we do already have a request open to enable folding for block comments in codeless language modules, and I encourage anyone who's interested in making use of same to write to <[email protected]>.)


Clearly it is different for the coded language modules, which collapse block comments quite happily.

Yes; code-based language modules may define fold ranges as they see fit.


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.             <http://www.barebones.com/>

--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to