Hi Shawn,

Here is a Shawn.plist that follows Rich's recommendations and seems to work 
regarding completions.

There was a misconfiguration in the .plist I originally posted. Sorry for 
that.
Apparently the key defining 'Identifier and Keyword Characters' prevented 
BBEdit from displaying completions.

The key:

    <key>Identifier and Keyword *Characters*</key>
    <string>\S</string>

is now replaced by: 

    <key>Identifier and Keyword *Character Class*</key>
    <string>\S</string>

I also note that you changed the Number Pattern. 
Be aware that <[\d+]> is a regular expression that will only match a single 
decimal or a '+' sign in between angle brackets (i.e., <0>, ..., <9>, <+>) :

    <key>Number Pattern</key>
    <string><![CDATA[(?x)



*    <        [\d+]    >*    ]]></string>

If what you want to match is someting in the form <123,456> then this 
pattern is more appropriate:

    <key>Number Pattern</key>
    <string><![CDATA[(?x)



*    <        [\d,]+?    >*    ]]></string>

HTH,

Jean Jourdain

--
Shawn.plist

```
<?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>BBEditDocumentType</key>
    <string>CodelessLanguageModule</string>
    <key>BBLMColorsSyntax</key>
    <true/>
    <key>BBLMIsCaseSensitive</key>
    <true/>
    <key>BBLMSupportsTextCompletion</key> 
    <false/> 
    <key>BBLMPredefinedNameList</key> 
    <array> 
    <string>John Lennon</string> 
    <string>Paul McCartney</string> 
    <string>George Harrison</string> 
    <string>Ringo Starr</string> 
    <string>Beyoncé With Accent</string>
    </array> 
    <key>BBLMLanguageCode</key>
    <string>SHAW</string>
    <key>BBLMLanguageDisplayName</key>
    <string>Shawn</string>
    <key>BBLMScansFunctions</key>
    <false/>
    <key>BBLMFunctionScannerDoesFoldsToo</key>
    <false/>
    <key>BBLMSuffixMap</key>
    <array>
        <dict>
            <key>BBLMLanguageSuffix</key>
            <string>.shawn</string>
        </dict>
    </array>
    <key>Language Features</key>
    <dict>
        <key>Close Block Comments</key>
        <false/>
        <key>Close Statement Blocks</key>
        <false/>
        <key>End-of-line Ends Strings 1</key>
        <false/>
        <key>End-of-line Ends Strings 2</key>
        <false/>
        <key>Escape Char in Strings 1</key>
        <string>\</string>
        <key>Escape Char in Strings 2</key>
        <string>\</string>
        <key>Identifier and Keyword Character Class</key>
        <string>\S</string>
        <key>Open Block Comments</key>
        <false/>
        <key>Open Line Comments</key>
        <false/>
        <key>Open Statement Blocks</key>
        <false/>
        <key>Close Strings 1</key>
        <false/>
        <key>Close Strings 2</key>
        <false/>
        <key>Open Strings 1</key>
        <false/>
        <key>Open Strings 2</key>
        <false/>
        <key>Number Pattern</key>
        <string><![CDATA[(?x)
<
    [\d,]+?
>
]]></string>
        <key>String Pattern</key>
        <string><![CDATA[(?x)
(
    “(\\“|[^”])*?”  (?# Double-curly-quote)
|
    "(\\"|[^"])*?"  (?# Double-quote)
|
    '(\\'|[^'])*?'  (?# Single-quote)
)
]]></string>
        <key>Comment Pattern</key>
        <string><![CDATA[(?x)
\[
    [^\[\]]+?
\]
]]></string>
    </dict>
</dict>
</plist>

-- 
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/18007b06-9d89-47a4-a4c4-793e5485a4ffn%40googlegroups.com.

Reply via email to