Below is example code and a custom Codeless Language module.  Color syntax 
works for keywords, comments, and strings.  Although, function symbols do 
not show up in the function symbols drop down.  I've tried using the regex 
method with the same result.  Everything works except for function symbol 
recognition.  

At this point I'm not sure if this is a bug or something that I'm missing. 
 Any help would be greatly appreciated.


Example Code:

; This is a comment
DEF FUNCTION
  WRITE "This is a string."
  WRITE "This is a string with a comment." ; A comment
END
; This is an ending comment.

Codeless language module:

<?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>BBLMLanguageDisplayName</key> <string>PM PRG</string>
<key>BBLMLanguageCode</key>         <string>PMP2</string>
<key>BBLMPreferredFilenameExtension</key>   <string>prt</string>
<key>BBLMColorsSyntax</key>         <true/>
<key>BBLMSupportsTextCompletion</key> <false/>
<key>BBLMScansFunctions</key>         <true/>
<key>BBLMIsCaseSensitive</key> <true/>
<key>BBLMCommentLineDefault</key>   <string>;</string>

<key>BBLMSuffixMap</key>
<array>
  <dict>
    <key>BBLMLanguageSuffix</key>       <string>.prt</string>
  </dict>
</array>
 <key>BBLMKeywordList</key>
<array>
<string>DEF</string> 
<string>DEL</string>
<string>END</string>
<string>WRITE</string>
</array>
 <key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>A-Za-z0-9</string>
<key>Open Line Comments</key>     <string>;</string>
<key>Open Strings 1</key>   <string>"</string>
<key>Close Strings 1</key>   <string>"</string>
<key>Prefix for Functions</key>     <string>DEF</string>
</dict> 
</dict>
</plist>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
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>



Reply via email to