Hi Stam,
Take a look at https://www.barebones.com/support/develop/clm.html#ExREComments.
You could leave empty all the BBLMComment* keys and add this to your plist:
<key>Comment Pattern</key>
<string><![CDATA[
(?x) (?# Allow comments and ignore whitespace even in classes.)
(?-s) (?# Dot doesn't match newlines.)
(\#|--|\/\/) (?# Single line comment prefixes.)
.* (?# Rest of the line)
$ (?# End of line.)
]]></string>
Here is an imaginary Stam Codeless Language Module that would be applied to files with .stam extension.
Name it ~/Library/Application Support/BBEdit/Language Modules_out/Stam.plist and restart BBEdit.
<?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>
<false/>
<key>BBLMLanguageCode</key>
<string>Stam</string>
<key>BBLMLanguageDisplayName</key>
<string>Stam</string>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.stam</string>
</dict>
</array>
<key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>\p{L}\p{N}\-</string>
<key>Comment Pattern</key>
<string><![CDATA[
(?x) (?# Allow comments and ignore whitespace even in classes.)
(?-s) (?# Dot doesn't match newlines.)
(\#|--|\/\/) (?# Single line comment prefixes.)
.* (?# Rest of the line)
$ (?# End of line.)
]]></string>
</dict>
</dict>
</plist>
For help on regular expressions, see BBEdit > Help > BBEdit Help > Grep Reference.
HTH
Jean Jourdain