Thanks Rich,
Then I just need to brush up on the Grep in CDATA.. is the Grep Ref in the
BBEdit manual still the best place?
Stuff like this needs some getting used too:
(?x:
(?P<function>
^(?!\.\.\s)\ ?(?P<function_name>\S[^\r]+)\r
^(?P<bar>[-=`:.'"~^_*+#!$%&(),/;<>?@[\]\{|}])(?P=bar)+\s*$
(?s).*?(?-s)
)
(?=
(^\s*\r((?P<overline>[-=`:.'"~^_*+#!$%&(),/;<>?@[\]\{|}])(?P=overline)+\s*\r)?
^(?!\.\.\s)\ ?\S[^\r]+\r
^(?P<nextbar>[-=`:.'"~^_*+#!$%&(),/;<>?@[\]\{|}])(?P=nextbar)+\s*$
) | (?-m)$
)
😉
--
Jakob Peterhänsel
"Be a part of the Love Generation - carry a smile, not a gun."
- JP, May 2006
Phone: +45 29808600
> On 15 May 2020, at 17.35, Rich Siegel <[email protected]> wrote:
>
> On 5/15/20 at 11:26 AM, [email protected] (Jakob Peterhänsel) wrote:
>
>> Comments
>> If I understand this correctly:
>> http://www.barebones.com/support/develop/clm.html#UnCommentMarkers
>> We should not use these ‘old’ types any more: [...]
>>
>> But use the new BBLMCommentLineDefault,
>> BBLMCommentPrefixDefault/BBLMCommentSuffixDefault?
>
> The "Open Line Comments", "Open Block Comments", and "Close Block Comments"
> values are used for interpreting the text, so you need them. They do not
> affect the behavior of Un/Comment Lines/Block.
>
> The "BBLMCommentLineDefault", "BBLMCommentPrefixDefault", and
> "BBLMCommentSuffixDefault" values alter the behavior of Un/Comment
> Lines/Block, and do not play any part in syntax coloring or function scanning.
>
> So, you need them both (and their values may be the same).
>
>> ‘Functions/Parts of the file'
>>
>> The configuration files I try to make a CLM for, has special areas in the
>> file, inclosed in HTML-like tags: [...]
>>
>> So I guess I need to make a Structural Element with a Function Pattern,
>> that would also make it foldable, and make the RegEx specific enough to find
>> the open & close tags..
>>
>> Am I on the right path? ;-)
>
> Probably. :-) Trying to parse HTML-like things with regular expressions, or
> expressing them with a codeless language module, is generally a losing
> battle; but if you constrain things enough you may be able to make it work.
>
> R.
> --
> Rich Siegel Bare Bones Software, Inc.
> <[email protected]> <https://www.barebones.com/>
>
> Someday I'll look back on all this and laugh... until they sedate me.
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "[email protected]"
> rather than posting here. Follow @bbedit on Twitter:
> <https://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 view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-F0276DEFB8B745C5AA56E9BEE22CF64A%40Stormwind.local.
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical support, please email "[email protected]" rather than
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/90CEF088-D36D-4C2E-B4F9-28C73AF7EAF6%40gmail.com.