Hi Travis,
There are a few issues with your module.
1. BBEdit reports an error in your module
Menu BBEdit > Folders > Logs
Check
~/Library/Containers/com.barebones.bbedit/Data/Library/Logs/BBEdit/Language Module Errors.log
================================================================================
2022-09-15 10:30:24.678: Startup
The following problem(s) were encountered while loading the language module at ~/Library/Application Support/BBEdit/Language Modules/foldingtext.plist:
The Comment Pattern was invalid (missing closing parenthesis (error 112114) at offset 224 in pattern).
The reported problems will prevent the language module from loading.
This is due to the '#' characters not being escaped in
'(?s:^#.*?#$)' when using the (?x) modifier. Should be
'(?s:^\#.*?\#$)' .
2. Not sure if Codeless Language Modules will do Comment Pattern folding. You could use Function Pattern folding instead.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBLMCanSpellCheckCodeRuns</key>
<true/>
<key>BBLMCommentPrefixDefault</key>
<string>#</string>
<key>BBLMCommentSuffixDefault</key>
<string>#</string>
<key>BBLMCommentLineDefault</key>
<string>//</string>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMIsCaseSensitive</key>
<false/>
<key>BBLMLanguageCode</key>
<string>txtF</string>
<key>BBLMLanguageDisplayName</key>
<string>Folding Text</string>
<key>BBLMScansFunctions</key>
<false/>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.txt</string>
</dict>
</array>
<key>BBLMScansFunctions</key>
<true/>
<key>BBLMFunctionScannerDoesFoldsToo</key>
<true/>
<key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>\p{Xwd}</string>
<key>Function Pattern</key>
<string><![CDATA[(?x)(?s)
(?P<function>
(?P<function_name>
//[^\v]* (?# Line comment using //)
|
\/\*.*?\*\/ (?# Block comment using /* */)
|
^\#.*?\#$ (?# Block comment using #...#)
|
^<!--.*?-->$ (?# Block comment using <!-- -->)
)
)
]]></string>
</dict>
</dict>
</plist>
HTH,
Jean Jourdain