Shawn,

1. It seems that the problem is in the "Identifier and Keyword Character 
Class".
By specifying *\S* (Anything that is not whitespace) the starting square 
bracket is included in the completion prefix.
Obviously there is no "[ra..." entry in "BBLMPredefinedNameList".

Try with this:

    <key>Identifier and Keyword Character Class</key>
    <string>*\p{Xwd}*</string>
 
\p{Xwd} is a unicode character class that matches letters, digits and 
underscores.
The BBEdit keyword parser should now use "ra..." as a completion prefix.


2. BTW, a *completely different but probably easier approach* whould be to 
use *Clippings*. (BBEdit manual p. 315).

Create a directory for the Shawn language clippings:

    % mkdir -p ~/Library/Application\ Support/BBEdit/Clippings/Shawn.shawn/
    
Inside that directory create a file named "ys".
and inside that file paste this content: "We all live in a yellow 
submarine."

    % echo "We all live in a yellow submarine." > ~/Library/Application\ 
Support/BBEdit/Clippings/Shawn.shawn/ys

The "ys" entry should now appear in the completion menu after you type a 
"y" in a Shawn language document .

This approach *doesn't need* you to restart BBEdit.
Just keep adding clipping files to the Shawn.shawn/ directory.
The name of the file should be the abbreviation, the contents of the file 
should be the replacement string.

HTH

Jean Jourdain

-- 
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/111ce72f-ca27-4c4e-96c3-a15041ec3d13n%40googlegroups.com.

Reply via email to