Hi

I recently dipped my feet in a very simple CLM for a text file I have. The text 
file has lots of sections marked

        ------------------------------------------------------------------
        some text
        ------------------------------------------------------------------

And I wanted to be able to fold these sections automatically.

My CLM has the very simple definition


        <key>Language Features</key> 
        <dict>
            <key>Open Block Comments</key> 
            
<string>------------------------------------------------------------------</string>
 
         
            <key>Close Block Comments</key> 
            
<string>------------------------------------------------------------------</string>
        
                <key>Identifier and Keyword Character Class</key>
                <!-- Example: <string>a-zA-Z0-9_</string> -->
                <string>A-Za-z0-9_\?!</string>
        </dict> 

This certainly marks the blocks as comments (they are greyed out), but they 
don't have any folding icons. Indeed, it doesn't seem to matter what comment 
format I choose (e.g. I tried normal /* */ comments too) and whether I use 
strings or regexes, nothing works. I tried recasting the comments as blocks, 
functions, etc. same thing. I even tried using someone else's CLM for a 
different language (Apex) and the same thing is true, no folding!

Is something wrong with folding in 12.1.5, or in CLMs in general? Or have I 
gone mad and missed something?

Any help appreciated!

Here's the full CLM


<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";> 
<plist version="1.0"> 
<dict> 
        <key>BBEditDocumentType</key> 
        <string>CodelessLanguageModule</string> 
        <key>BBLMColorsSyntax</key> 
        <true/> 
        <key>BBLMIsCaseSensitive</key> 
        <true/> 
        <key>BBLMKeywordList</key> 
        <array>
                <string>SCENE</string>
                <string>Round</string>
                <string>Initiative</string>
        </array> 
        <key>BBLMLanguageCode</key> 
        <string>SOLO</string> 
        <key>BBLMLanguageDisplayName</key> 
        <string>Solo RPG</string> 
        <key>BBLMScansFunctions</key> 
        <true/> 
        <key>BBLMSuffixMap</key> 
        <array> 
                <dict> 
                        <key>BBLMLanguageSuffix</key> 
                        <string>.solo</string> 
                </dict> 
        </array> 
        <key>Language Features</key> 
        <dict>
            <key>Open Block Comments</key> 
            
<string>------------------------------------------------------------------</string>
 
         
            <key>Close Block Comments</key> 
            
<string>------------------------------------------------------------------</string>
        
                <key>Identifier and Keyword Character Class</key>
                <!-- Example: <string>a-zA-Z0-9_</string> -->
                <string>A-Za-z0-9_\?!</string>
        </dict> 
</dict> 
</plist>

-- 
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